aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
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
commit8d91da999f5fc691e292df1516bd4cd22c8e0572 (patch)
treed1d87e9c11b8e450d193f22a422ba9a3ccf6fd5f /lib/CodeGen
parent983da3c173bb3d1cf51d93f5d6b821dbfd838425 (diff)
downloadexternal_llvm-8d91da999f5fc691e292df1516bd4cd22c8e0572.zip
external_llvm-8d91da999f5fc691e292df1516bd4cd22c8e0572.tar.gz
external_llvm-8d91da999f5fc691e292df1516bd4cd22c8e0572.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')
-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;
}