summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DIE.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-16 18:50:28 +0000
committerChris Lattner <sabre@nondot.org>2010-01-16 18:50:28 +0000
commit06d45f6e751911858d000ba0c16f8c51a6650ce1 (patch)
treea63348c96d74ee1c57f1abe3cfa47d6fe5925e96 /llvm/lib/CodeGen/AsmPrinter/DIE.cpp
parent555ceabe64d5b45e5a36a6a15be9372423e26473 (diff)
downloadbcm5719-llvm-06d45f6e751911858d000ba0c16f8c51a6650ce1.tar.gz
bcm5719-llvm-06d45f6e751911858d000ba0c16f8c51a6650ce1.zip
Change DIEObjectLabel to take an MCSymbol instead of std::string.
llvm-svn: 93647
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DIE.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DIE.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DIE.cpp b/llvm/lib/CodeGen/AsmPrinter/DIE.cpp
index b85e11acc0f..e740a56312e 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DIE.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud