commit | 75395847817b88798f9d8cdfb7bc99388167d291 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Thu May 06 00:29:41 2010 +0000 |
committer | Dan Gohman <gohman@apple.com> | Thu May 06 00:29:41 2010 +0000 |
tree | b48589c1eb6612af9db0dbb8d654d49286ec4630 | |
parent | b4202dbb36e9799c96890fc3aa0040c1aedb33c8 [diff] [blame] |
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
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 @@ PrevInstLoc = DL; PrevLabel = Label; } + + // If this instruction begins a scope then note down corresponding label. + if (InsnsBeginScopeSet.count(MI) != 0) + LabelsBeforeInsn[MI] = Label; + return; }