diff options
author | Devang Patel <dpatel@apple.com> | 2010-02-16 21:41:20 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-02-16 21:41:20 +0000 |
commit | 7585580ccc1ca3ec70ab828743000b6e4c2365a6 (patch) | |
tree | 69abfb8d83e2329fa2bc8e129df4214b79f2d64f /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | b154fdc9749aa09769577cd862193791a98d300e (diff) | |
download | bcm5719-llvm-7585580ccc1ca3ec70ab828743000b6e4c2365a6.tar.gz bcm5719-llvm-7585580ccc1ca3ec70ab828743000b6e4c2365a6.zip |
Distinguish two lexical blocks at the same level.
llvm-svn: 96397
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 5b9c6b055e0..3a27a379885 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -1351,10 +1351,13 @@ void CGDebugInfo::EmitStopPoint(llvm::Function *Fn, CGBuilderTy &Builder) { /// EmitRegionStart- Constructs the debug code for entering a declarative /// region - "llvm.dbg.region.start.". void CGDebugInfo::EmitRegionStart(llvm::Function *Fn, CGBuilderTy &Builder) { + SourceManager &SM = CGM.getContext().getSourceManager(); + PresumedLoc PLoc = SM.getPresumedLoc(CurLoc); llvm::DIDescriptor D = DebugFactory.CreateLexicalBlock(RegionStack.empty() ? llvm::DIDescriptor() : - llvm::DIDescriptor(RegionStack.back())); + llvm::DIDescriptor(RegionStack.back()), + PLoc.getLine(), PLoc.getColumn()); RegionStack.push_back(D.getNode()); } |