aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/CodeGen/AsmPrinter.h4
-rw-r--r--lib/CodeGen/AsmPrinter/AsmPrinter.cpp7
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfException.cpp2
3 files changed, 1 insertions, 12 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h
index 8404841b5a..375b260c13 100644
--- a/include/llvm/CodeGen/AsmPrinter.h
+++ b/include/llvm/CodeGen/AsmPrinter.h
@@ -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;
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index a457421b90..e5f0dba2b9 100644
--- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/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/lib/CodeGen/AsmPrinter/DwarfException.cpp b/lib/CodeGen/AsmPrinter/DwarfException.cpp
index abd2e6fe80..f8e8009cd0 100644
--- a/lib/CodeGen/AsmPrinter/DwarfException.cpp
+++ b/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"))