eliminate the horrid AsmPrinter::getGlobalLinkName method, inlining
[oota-llvm.git] / lib / CodeGen / AsmPrinter / AsmPrinter.cpp
index 745696cc87907d604c94c9d3ff913071d0fe95a4..a457421b90711b01732a86452e54eb637482ebc9 100644 (file)
@@ -509,20 +509,10 @@ void AsmPrinter::EmitXXStructorList(Constant *List) {
     }
 }
 
-/// getGlobalLinkName - Returns the asm/link name of of the specified
-/// global variable.  Should be overridden by each target asm printer to
-/// generate the appropriate value.
-const std::string &AsmPrinter::getGlobalLinkName(const GlobalVariable *GV,
-                                                 std::string &LinkName) const {
-  LinkName += Mang->getMangledName(GV);
-  return LinkName;
-}
-
 /// 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) {
-  std::string GLN;
-  O << getGlobalLinkName(GV, GLN);
+  O << Mang->getMangledName(GV);
 }