summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
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
commitacc32a5c1976b21ef8fc0e40c2e0566212f43b25 (patch)
tree547f502c1af317918ce7a8c08766fbce3d3e3c25 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parentb0e28471a679927cdfbe736899f50c5c1f56125d (diff)
downloadbcm5719-llvm-acc32a5c1976b21ef8fc0e40c2e0566212f43b25.tar.gz
bcm5719-llvm-acc32a5c1976b21ef8fc0e40c2e0566212f43b25.zip
There is no need to force an line number entry (using previous location) for a temp label at unknown location.
llvm-svn: 104740
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 9aee5937dd0..acc168e6918 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud