Eliminate AsmPrinter::EmitExternalGlobal, inlining its (now)

one implementation into its one caller.  This eliminates a totally
awesome and gratuitous hack where we casted a Function* to 
GlobalVariable*.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81967 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2009-09-16 00:17:39 +00:00
parent 1633076c47
commit 1c90c6f1c5
3 changed files with 1 additions and 12 deletions

View File

@ -159,10 +159,6 @@ namespace llvm {
///
bool isVerbose() const { return VerboseAsm; }
/// EmitExternalGlobal - Emit the external reference to a global variable.
/// Should be overridden if an indirect reference should be used.
virtual void EmitExternalGlobal(const GlobalVariable *GV);
/// getCurrentFunctionEHName - Called to return the CurrentFnEHName.
///
std::string getCurrentFunctionEHName(const MachineFunction *MF) const;

View File

@ -509,13 +509,6 @@ void AsmPrinter::EmitXXStructorList(Constant *List) {
}
}
/// EmitExternalGlobal - Emit the external reference to a global variable.
/// Should be overridden if an indirect reference should be used.
void AsmPrinter::EmitExternalGlobal(const GlobalVariable *GV) {
O << Mang->getMangledName(GV);
}
//===----------------------------------------------------------------------===//
/// LEB 128 number encoding.

View File

@ -163,7 +163,7 @@ void DwarfException::EmitCIE(const Function *Personality, unsigned Index) {
O << MAI->getData32bitsDirective();
O << MAI->getPersonalityPrefix();
Asm->EmitExternalGlobal((const GlobalVariable *)(Personality));
O << Asm->Mang->getMangledName(Personality);
O << MAI->getPersonalitySuffix();
if (strcmp(MAI->getPersonalitySuffix(), "+4@GOTPCREL"))