remove another form of EmitReference.

llvm-svn: 97998
This commit is contained in:
Chris Lattner 2010-03-08 22:50:36 +00:00
parent b779eb6a1d
commit 3c081995f6
3 changed files with 3 additions and 10 deletions

View File

@ -236,7 +236,7 @@ void DwarfException::EmitFDE(const FunctionEHFrameInfo &EHFrameInfo) {
EOL("FDE CIE offset"); EOL("FDE CIE offset");
EmitReference("eh_func_begin", EHFrameInfo.Number, FDEEncoding); EmitReference(getDWLabel("eh_func_begin", EHFrameInfo.Number), FDEEncoding);
EOL("FDE initial location"); EOL("FDE initial location");
EmitDifference("eh_func_end", EHFrameInfo.Number, EmitDifference("eh_func_end", EHFrameInfo.Number,
"eh_func_begin", EHFrameInfo.Number, "eh_func_begin", EHFrameInfo.Number,
@ -250,7 +250,7 @@ void DwarfException::EmitFDE(const FunctionEHFrameInfo &EHFrameInfo) {
EmitULEB128(Size, "Augmentation size"); EmitULEB128(Size, "Augmentation size");
if (EHFrameInfo.hasLandingPads) if (EHFrameInfo.hasLandingPads)
EmitReference("exception", EHFrameInfo.Number, LSDAEncoding); EmitReference(getDWLabel("exception", EHFrameInfo.Number),LSDAEncoding);
else else
Asm->OutStreamer.EmitIntValue(0, Size/*size*/, 0/*addrspace*/); Asm->OutStreamer.EmitIntValue(0, Size/*size*/, 0/*addrspace*/);

View File

@ -241,12 +241,6 @@ void DwarfPrinter::EmitReference(const MCSymbol *Sym, bool IsPCRelative,
if (IsPCRelative) O << "-" << MAI->getPCSymbol(); 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 { void DwarfPrinter::EmitReference(const MCSymbol *Sym, unsigned Encoding) const {
const TargetLoweringObjectFile &TLOF = Asm->getObjFileLowering(); const TargetLoweringObjectFile &TLOF = Asm->getObjFileLowering();
@ -259,7 +253,7 @@ void DwarfPrinter::EmitReference(const GlobalValue *GV, unsigned Encoding)const
PrintRelDirective(Encoding); PrintRelDirective(Encoding);
O << *TLOF.getSymbolForDwarfGlobalReference(GV, Asm->Mang, O << *TLOF.getSymbolForDwarfGlobalReference(GV, Asm->Mang,
Asm->MMI, Encoding);; Asm->MMI, Encoding);
} }
/// EmitDifference - Emit the difference between two labels. If this assembler /// EmitDifference - Emit the difference between two labels. If this assembler

View File

@ -134,7 +134,6 @@ public:
void EmitReference(const MCSymbol *Label, bool IsPCRelative = false, void EmitReference(const MCSymbol *Label, bool IsPCRelative = false,
bool Force32Bit = false) const; 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 MCSymbol *Sym, unsigned Encoding) const;
void EmitReference(const GlobalValue *GV, unsigned Encoding) const; void EmitReference(const GlobalValue *GV, unsigned Encoding) const;