diff options
author | Dan Gohman <gohman@apple.com> | 2010-05-06 00:29:41 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-05-06 00:29:41 +0000 |
commit | 47d04e3e419778121570cf54ab62df7f65ade924 (patch) | |
tree | 6a07e088b28af4db73644f8d86748b10bb7ec34e /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | e902956f599c71431f91948b6747e3c293517c00 (diff) | |
download | bcm5719-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.cpp | 5 |
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; } |