diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-16 18:50:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-16 18:50:28 +0000 |
commit | 858431d0bc81ddab11363cc0eb2889dbfdc8362b (patch) | |
tree | 6b5acc658beaa85e7b6732f4ac5c304b793025e3 /lib/CodeGen/AsmPrinter/DIE.cpp | |
parent | 7a2ba94d03b43f41b54872dacd7b2250dde4c7bd (diff) | |
download | llvm-858431d0bc81ddab11363cc0eb2889dbfdc8362b.tar.gz llvm-858431d0bc81ddab11363cc0eb2889dbfdc8362b.tar.bz2 llvm-858431d0bc81ddab11363cc0eb2889dbfdc8362b.tar.xz |
Change DIEObjectLabel to take an MCSymbol instead of std::string.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93647 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DIE.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DIE.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/DIE.cpp b/lib/CodeGen/AsmPrinter/DIE.cpp index b85e11acc0..e740a56312 100644 --- a/lib/CodeGen/AsmPrinter/DIE.cpp +++ b/lib/CodeGen/AsmPrinter/DIE.cpp @@ -15,6 +15,7 @@ #include "DwarfPrinter.h" #include "llvm/CodeGen/AsmPrinter.h" #include "llvm/MC/MCAsmInfo.h" +#include "llvm/MC/MCSymbol.h" #include "llvm/Target/TargetData.h" #include "llvm/Support/Debug.h" #include "llvm/Support/ErrorHandling.h" @@ -276,7 +277,7 @@ void DIEDwarfLabel::print(raw_ostream &O) { /// void DIEObjectLabel::EmitValue(Dwarf *D, unsigned Form) const { bool IsSmall = Form == dwarf::DW_FORM_data4; - D->EmitReference(Label, false, IsSmall); + D->EmitReference(Sym, false, IsSmall); } /// SizeOf - Determine size of label value in bytes. @@ -288,7 +289,7 @@ unsigned DIEObjectLabel::SizeOf(const TargetData *TD, unsigned Form) const { #ifndef NDEBUG void DIEObjectLabel::print(raw_ostream &O) { - O << "Obj: " << Label; + O << "Obj: " << Sym->getName(); } #endif |