diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-08 22:50:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-08 22:50:36 +0000 |
commit | 326861c4c823faedd5123f2acd5ad83f7a547e80 (patch) | |
tree | 4bcb0eb3a5350aea4f115f6dabbc747d02c455dd /lib | |
parent | c7249da2e9d1b89f3b49a12dc698d6a683c32402 (diff) | |
download | external_llvm-326861c4c823faedd5123f2acd5ad83f7a547e80.zip external_llvm-326861c4c823faedd5123f2acd5ad83f7a547e80.tar.gz external_llvm-326861c4c823faedd5123f2acd5ad83f7a547e80.tar.bz2 |
remove another form of EmitReference.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97998 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfException.cpp | 4 | ||||
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfPrinter.cpp | 8 | ||||
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfPrinter.h | 1 |
3 files changed, 3 insertions, 10 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfException.cpp b/lib/CodeGen/AsmPrinter/DwarfException.cpp index 2a7a5bf..f854fc5 100644 --- a/lib/CodeGen/AsmPrinter/DwarfException.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfException.cpp @@ -236,7 +236,7 @@ void DwarfException::EmitFDE(const FunctionEHFrameInfo &EHFrameInfo) { EOL("FDE CIE offset"); - EmitReference("eh_func_begin", EHFrameInfo.Number, FDEEncoding); + EmitReference(getDWLabel("eh_func_begin", EHFrameInfo.Number), FDEEncoding); EOL("FDE initial location"); EmitDifference("eh_func_end", EHFrameInfo.Number, "eh_func_begin", EHFrameInfo.Number, @@ -250,7 +250,7 @@ void DwarfException::EmitFDE(const FunctionEHFrameInfo &EHFrameInfo) { EmitULEB128(Size, "Augmentation size"); if (EHFrameInfo.hasLandingPads) - EmitReference("exception", EHFrameInfo.Number, LSDAEncoding); + EmitReference(getDWLabel("exception", EHFrameInfo.Number),LSDAEncoding); else Asm->OutStreamer.EmitIntValue(0, Size/*size*/, 0/*addrspace*/); diff --git a/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp b/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp index 36d8521..6804628 100644 --- a/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfPrinter.cpp @@ -241,12 +241,6 @@ void DwarfPrinter::EmitReference(const MCSymbol *Sym, bool IsPCRelative, if (IsPCRelative) O << "-" << MAI->getPCSymbol(); } -void DwarfPrinter::EmitReference(const char *Tag, unsigned Number, - unsigned Encoding) const { - // FIXME: REMOVE. - EmitReference(getDWLabel(Tag, Number), Encoding); -} - void DwarfPrinter::EmitReference(const MCSymbol *Sym, unsigned Encoding) const { const TargetLoweringObjectFile &TLOF = Asm->getObjFileLowering(); @@ -259,7 +253,7 @@ void DwarfPrinter::EmitReference(const GlobalValue *GV, unsigned Encoding)const PrintRelDirective(Encoding); O << *TLOF.getSymbolForDwarfGlobalReference(GV, Asm->Mang, - Asm->MMI, Encoding);; + Asm->MMI, Encoding); } /// EmitDifference - Emit the difference between two labels. If this assembler diff --git a/lib/CodeGen/AsmPrinter/DwarfPrinter.h b/lib/CodeGen/AsmPrinter/DwarfPrinter.h index 316cd01..3c9d555 100644 --- a/lib/CodeGen/AsmPrinter/DwarfPrinter.h +++ b/lib/CodeGen/AsmPrinter/DwarfPrinter.h @@ -134,7 +134,6 @@ public: void EmitReference(const MCSymbol *Label, bool IsPCRelative = false, bool Force32Bit = false) const; - void EmitReference(const char *Tag, unsigned Number, unsigned Encoding) const; void EmitReference(const MCSymbol *Sym, unsigned Encoding) const; void EmitReference(const GlobalValue *GV, unsigned Encoding) const; |