diff options
author | Stuart Hastings <stuart@apple.com> | 2010-07-19 23:56:31 +0000 |
---|---|---|
committer | Stuart Hastings <stuart@apple.com> | 2010-07-19 23:56:31 +0000 |
commit | 7d7bc561bf2d1b889ee197f9b4adbf99345a776d (patch) | |
tree | 4f45181a66e42edac2e637b72ddfe77795432add /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | 61475c5c3c30662d82efe16076d31303b9d28637 (diff) | |
download | bcm5719-llvm-7d7bc561bf2d1b889ee197f9b4adbf99345a776d.tar.gz bcm5719-llvm-7d7bc561bf2d1b889ee197f9b4adbf99345a776d.zip |
Correct line info for declarations/definitions. Radar 8063111.
llvm-svn: 108785
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 33e299340d3..6d7137e3889 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -1377,6 +1377,7 @@ void CGDebugInfo::EmitRegionStart(llvm::Function *Fn, CGBuilderTy &Builder) { DebugFactory.CreateLexicalBlock(RegionStack.empty() ? llvm::DIDescriptor() : llvm::DIDescriptor(RegionStack.back()), + getOrCreateFile(CurLoc), getLineNumber(CurLoc), getColumnNumber(CurLoc)); llvm::MDNode *DN = D; |