Remove the second argument to Value::setName, it is never needed.
authorChris Lattner <sabre@nondot.org>
Sat, 5 Mar 2005 18:59:36 +0000 (18:59 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 5 Mar 2005 18:59:36 +0000 (18:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20457 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Argument.h
include/llvm/BasicBlock.h
include/llvm/Constant.h
include/llvm/Function.h
include/llvm/GlobalVariable.h
include/llvm/Instruction.h
include/llvm/Value.h

index d39c373b0a5893a2734f819c91dae3fc4cbe3bff..51e53b17bd1321afe319a8b9c3ebb0c68ac9dd7a 100644 (file)
@@ -39,8 +39,8 @@ public:
   ///
   Argument(const Type *Ty, const std::string &Name = "", Function *F = 0);
 
-  /// setName - Specialize setName to handle symbol table majik...
-  virtual void setName(const std::string &name, SymbolTable *ST = 0);
+  /// setName - Specialize setName to handle symbol table majik.
+  virtual void setName(const std::string &name);
 
   inline const Function *getParent() const { return Parent; }
   inline       Function *getParent()       { return Parent; }
index 2b7b6301365371b805fdf42df44939a303092c83..b48693f0dcd7af4f875eb23f8b3c88bb0588bfa5 100644 (file)
@@ -77,7 +77,7 @@ public:
   ~BasicBlock();
 
   // Specialize setName to take care of symbol table majik
-  virtual void setName(const std::string &name, SymbolTable *ST = 0);
+  virtual void setName(const std::string &name);
 
   /// getParent - Return the enclosing method, or null if none
   ///
index cc73b53b497cc38ca9cc01e7bcae9cd1c1a56a98..112cb4d2abcfcf4d2c015fd53138c593758ffb6c 100644 (file)
@@ -26,8 +26,8 @@ protected:
 
   void destroyConstantImpl();
 public:
-  // setName - Specialize setName to handle symbol table majik...
-  virtual void setName(const std::string &name, SymbolTable *ST = 0);
+  // setName - Specialize setName to handle symbol table majik.
+  virtual void setName(const std::string &name);
 
   /// Static constructor to get a '0' constant of arbitrary type...
   ///
index 6c1f4692187008baff4033f2f2b1a94e8c4ff215..112958002c9971be6fbd62de2c39cc2a88689b13 100644 (file)
@@ -85,8 +85,8 @@ public:
            const std::string &N = "", Module *M = 0);
   ~Function();
 
-  // Specialize setName to handle symbol table majik...
-  virtual void setName(const std::string &name, SymbolTable *ST = 0);
+  // Specialize setName to handle symbol table majik.
+  virtual void setName(const std::string &name);
 
   const Type *getReturnType() const;           // Return the type of the ret val
   const FunctionType *getFunctionType() const; // Return the FunctionType for me
index 1a951774fd351fca780a8bdabe20eef2e05e0f96..9f73911872da8cb3490eb79ea2175a5159ac5869 100644 (file)
@@ -51,8 +51,8 @@ public:
                 Constant *Initializer = 0, const std::string &Name = "",
                  Module *Parent = 0);
 
-  // Specialize setName to handle symbol table majik...
-  virtual void setName(const std::string &name, SymbolTable *ST = 0);
+  // Specialize setName to handle symbol table majik.
+  virtual void setName(const std::string &name);
 
   /// isExternal - Is this global variable lacking an initializer?  If so, the
   /// global variable is defined in some other translation unit, and is thus
index 8d69afa7a6df163e6d74ba28dc74b10337968a8b..ae8d5caf08a9c1e0e3d57b3ca192b79225f965e2 100644 (file)
@@ -54,8 +54,8 @@ public:
     assert(Parent == 0 && "Instruction still linked in the program!");
   }
 
-  // Specialize setName to handle symbol table majik...
-  virtual void setName(const std::string &name, SymbolTable *ST = 0);
+  // Specialize setName to handle symbol table majik.
+  virtual void setName(const std::string &name);
   
   /// mayWriteToMemory - Return true if this instruction may modify memory.
   ///
index b9db5d643a6bce5de68c5370a484605d352e4063..f59e9461282d6f581a69d8aba0d33f43c5fd6a8f 100644 (file)
@@ -75,7 +75,7 @@ public:
   inline bool               hasName() const { return !Name.empty(); }
   inline const std::string &getName() const { return Name; }
 
-  virtual void setName(const std::string &name, SymbolTable * = 0) {
+  virtual void setName(const std::string &name) {
     Name = name;
   }