aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-09 00:26:09 +0000
committerChris Lattner <sabre@nondot.org>2010-03-09 00:26:09 +0000
commitb9dc5f7b580951d51cb32b56b769ccda0647a7f6 (patch)
tree6ef68dd56fa304743ffd23994744867dcfd71e37 /lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parentef6b14f51c137e7386d8a2fb568c5a96defc2d36 (diff)
mc'ize the last use of PrintLabelName and eliminate PrintLabelName.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98015 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 2a1ff9ae8c..62c0d2183c 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/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*/);
}
}