[llvm-commits] [llvm] r103145 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Dan Gohman
gohman at apple.com
Wed May 5 17:29:41 PDT 2010
Author: djg
Date: Wed May 5 19:29:41 2010
New Revision: 103145
URL: http://llvm.org/viewvc/llvm-project?rev=103145&view=rev
Log:
Update LabelsBeforeInsn also, when creating unknown-position labels.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=103145&r1=103144&r2=103145&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Wed May 5 19:29:41 2010
@@ -2162,6 +2162,11 @@
PrevInstLoc = DL;
PrevLabel = Label;
}
+
+ // If this instruction begins a scope then note down corresponding label.
+ if (InsnsBeginScopeSet.count(MI) != 0)
+ LabelsBeforeInsn[MI] = Label;
+
return;
}
More information about the llvm-commits
mailing list