aboutsummaryrefslogtreecommitdiffstats
path: root/lib
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
commit75395847817b88798f9d8cdfb7bc99388167d291 (patch)
treeb48589c1eb6612af9db0dbb8d654d49286ec4630 /lib
parentb4202dbb36e9799c96890fc3aa0040c1aedb33c8 (diff)
downloadexternal_llvm-75395847817b88798f9d8cdfb7bc99388167d291.zip
external_llvm-75395847817b88798f9d8cdfb7bc99388167d291.tar.gz
external_llvm-75395847817b88798f9d8cdfb7bc99388167d291.tar.bz2
Update LabelsBeforeInsn also, when creating unknown-position labels.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103145 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 4da5498..4dc5305 100644
--- 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;
}