Clean up interface to getGlobalLinkName.
[oota-llvm.git] / include / llvm / CodeGen / AsmPrinter.h
index 8f73ce7f6c8782c734623fd8e8d805ad60564087..68ca2d0e32a8bfa8c04cf5066febb99d86da4033 100644 (file)
@@ -103,8 +103,7 @@ namespace llvm {
     /// 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.
-    virtual void getGlobalLinkName(const GlobalVariable *GV,
-                                   std::string &LinkName);
+    virtual const std::string getGlobalLinkName(const GlobalVariable *GV) const;
 
   protected:
     /// doInitialization - Set up the AsmPrinter when we are working on a new