summaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/AsmPrinter
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-05-26 21:23:46 +0000
committerDevang Patel <dpatel@apple.com>2010-05-26 21:23:46 +0000
commit77051f58e9417670c66d7b7f420a98ef46dbcdc6 (patch)
treed1d87e9c11b8e450d193f22a422ba9a3ccf6fd5f /lib/CodeGen/AsmPrinter
parent8d717c7d999231c8c54601720b08cd3eecf6d518 (diff)
downloadexternal_llvm-77051f58e9417670c66d7b7f420a98ef46dbcdc6.zip
external_llvm-77051f58e9417670c66d7b7f420a98ef46dbcdc6.tar.gz
external_llvm-77051f58e9417670c66d7b7f420a98ef46dbcdc6.tar.bz2
There is no need to force an line number entry (using previous location) for a temp label at unknown location.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104740 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 9aee593..acc168e 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -2289,12 +2289,11 @@ void DwarfDebug::beginScope(const MachineInstr *MI) {
return;
}
- // If location is unknown then Use last known location for this DBG_VALUE
+ // If location is unknown then use temp label for this DBG_VALUE
// instruction.
if (MI->isDebugValue()) {
- const MDNode *Scope =
- PrevInstLoc.getScope(Asm->MF->getFunction()->getContext());
- PrevLabel = recordSourceLine(PrevInstLoc.getLine(), PrevInstLoc.getCol(), Scope);
+ PrevLabel = MMI->getContext().CreateTempSymbol();
+ Asm->OutStreamer.EmitLabel(PrevLabel);
LabelsBeforeInsn[MI] = PrevLabel;
return;
}