projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4202db
)
Update LabelsBeforeInsn also, when creating unknown-position labels.
author
Dan Gohman
<gohman@apple.com>
Thu, 6 May 2010 00:29:41 +0000
(
00:29
+0000)
committer
Dan Gohman
<gohman@apple.com>
Thu, 6 May 2010 00:29:41 +0000
(
00:29
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103145
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 4da549866bf5bd5b7407fdbde10a19917ccbd823..4dc53059c1ad639ea2984b2f6b7dd6afcc84d233 100644
(file)
--- a/
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@
-2162,6
+2162,11
@@
void DwarfDebug::beginScope(const MachineInstr *MI) {
PrevInstLoc = DL;
PrevLabel = Label;
}
+
+ // If this instruction begins a scope then note down corresponding label.
+ if (InsnsBeginScopeSet.count(MI) != 0)
+ LabelsBeforeInsn[MI] = Label;
+
return;
}