diff options
author | Chris Lattner <sabre@nondot.org> | 2009-09-16 00:17:39 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-09-16 00:17:39 +0000 |
commit | d106abfce717761a0d28fb41c638f3a20fcc03ff (patch) | |
tree | 260b8f2c063caf1c20f2ace00f80c8d6d97d2b40 /llvm/lib/CodeGen | |
parent | 4ed397c141687621d83811db3fef55023e3c3623 (diff) | |
download | bcm5719-llvm-d106abfce717761a0d28fb41c638f3a20fcc03ff.tar.gz bcm5719-llvm-d106abfce717761a0d28fb41c638f3a20fcc03ff.zip |
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*.
llvm-svn: 81967
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 7 | ||||
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp | 2 |
2 files changed, 1 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index a457421b907..e5f0dba2b97 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -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. diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp index abd2e6fe80d..f8e8009cd0c 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp @@ -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")) |