commit | f79f0f79cfe8d4f689fbd3c91cf3dd25d8f84c8c | [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 | d095d3410fd7b5f586abcf00b4d990735edef4b7 [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; }