summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-05-06 00:29:41 +0000
committerDan Gohman <gohman@apple.com>2010-05-06 00:29:41 +0000
commit47d04e3e419778121570cf54ab62df7f65ade924 (patch)
tree6a07e088b28af4db73644f8d86748b10bb7ec34e /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parente902956f599c71431f91948b6747e3c293517c00 (diff)
downloadbcm5719-llvm-47d04e3e419778121570cf54ab62df7f65ade924.tar.gz
bcm5719-llvm-47d04e3e419778121570cf54ab62df7f65ade924.zip
Update LabelsBeforeInsn also, when creating unknown-position labels.
llvm-svn: 103145
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 4da549866bf..4dc53059c1a 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud