diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-14 02:20:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-14 02:20:58 +0000 |
commit | ee95d4c61cba2d8d51a92db962d51d24bb37b23b (patch) | |
tree | 775ec4710349e53ec7a9379f055023bd8549bddf /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | f7aa541107162869eed6ff6e01526bb2b9f3edab (diff) | |
download | bcm5719-llvm-ee95d4c61cba2d8d51a92db962d51d24bb37b23b.tar.gz bcm5719-llvm-ee95d4c61cba2d8d51a92db962d51d24bb37b23b.zip |
use Label->isDefined() instead of isLabelDeleted() now that we
consistently use MCSymbol and only call this predicate after
they should have been emitted.
llvm-svn: 98461
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 98e60a7616c..4b71cfe0036 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -2615,7 +2615,8 @@ void DwarfDebug::emitDebugLines() { for (unsigned i = 0, N = LineInfos.size(); i < N; ++i) { const SrcLineInfo &LineInfo = LineInfos[i]; unsigned LabelID = LineInfo.getLabelID(); - if (MMI->isLabelDeleted(LabelID)) continue; + MCSymbol *Label = getDWLabel("label", LabelID); + if (!Label->isDefined()) continue; // Not emitted, in dead code. if (LineInfo.getLine() == 0) continue; @@ -2638,8 +2639,8 @@ void DwarfDebug::emitDebugLines() { Asm->EmitInt8(dwarf::DW_LNE_set_address); Asm->OutStreamer.AddComment("Location label"); - Asm->OutStreamer.EmitSymbolValue(getDWLabel("label", LabelID), - TD->getPointerSize(), 0/*AddrSpace*/); + Asm->OutStreamer.EmitSymbolValue(Label, TD->getPointerSize(), + 0/*AddrSpace*/); // If change of source, then switch to the new source. if (Source != LineInfo.getSourceID()) { |