diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-09 00:26:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-09 00:26:09 +0000 |
commit | 53d6d1e87d628c1731e6726c33a4ed5530a8b83f (patch) | |
tree | aad692dfbe41072eb8aa55e3a460a556daa501d9 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 292ec6c299e9aae7427d2480244a3d720a2b6eec (diff) | |
download | bcm5719-llvm-53d6d1e87d628c1731e6726c33a4ed5530a8b83f.tar.gz bcm5719-llvm-53d6d1e87d628c1731e6726c33a4ed5530a8b83f.zip |
mc'ize the last use of PrintLabelName and eliminate PrintLabelName.
llvm-svn: 98015
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 2a1ff9ae8c8..62c0d2183c8 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -15,6 +15,7 @@ #include "llvm/Module.h" #include "llvm/CodeGen/MachineFunction.h" #include "llvm/CodeGen/MachineModuleInfo.h" +#include "llvm/MC/MCExpr.h" #include "llvm/MC/MCSection.h" #include "llvm/MC/MCStreamer.h" #include "llvm/MC/MCAsmInfo.h" @@ -2967,12 +2968,11 @@ void DwarfDebug::emitDebugInlineInfo() { DIE *SP = LI->second; Asm->EmitInt32(SP->getOffset()); EOL("DIE offset"); - if (TD->getPointerSize() == sizeof(int32_t)) - O << MAI->getData32bitsDirective(); - else - O << MAI->getData64bitsDirective(); - - PrintLabelName(getDWLabel("label", LI->first)); EOL("low_pc"); + // FIXME: "Labels" should hold MCSymbol*'s + MCSymbol *L = getDWLabel("label", LI->first); + if (Asm->VerboseAsm) Asm->OutStreamer.AddComment("low_pc"); + Asm->OutStreamer.EmitValue(MCSymbolRefExpr::Create(L, Asm->OutContext), + TD->getPointerSize(), 0/*AddrSpace*/); } } |