[llvm-commits] [llvm-gcc-4.2] r97851 - /llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp

Devang Patel dpatel at apple.com
Fri Mar 5 15:34:22 PST 2010


Author: dpatel
Date: Fri Mar  5 17:34:22 2010
New Revision: 97851

URL: http://llvm.org/viewvc/llvm-project?rev=97851&view=rev
Log:
Use current line number to distinguish between two lexical blocks at same depth.

Modified:
    llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp

Modified: llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp?rev=97851&r1=97850&r2=97851&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp Fri Mar  5 17:34:22 2010
@@ -415,7 +415,8 @@
     // TREE_BLOCK is GCC's lexical block.
     // Recursively create all necessary contexts:
     DIDescriptor context = findRegion(BLOCK_SUPERCONTEXT(Node));
-    DILexicalBlock lexical_block = DebugFactory.CreateLexicalBlock(context);
+    DILexicalBlock lexical_block = 
+      DebugFactory.CreateLexicalBlock(context, CurLineNo);
     RegionMap[Node] = WeakVH(lexical_block.getNode());
     return DIDescriptor(lexical_block);
   }





More information about the llvm-commits mailing list