From: Chris Lattner Date: Sat, 5 Mar 2005 18:59:36 +0000 (+0000) Subject: Remove the second argument to Value::setName, it is never needed. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d0478744b3b5232694d0f887b3210078de5266c4;p=oota-llvm.git Remove the second argument to Value::setName, it is never needed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20457 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Argument.h b/include/llvm/Argument.h index d39c373b0a5..51e53b17bd1 100644 --- a/include/llvm/Argument.h +++ b/include/llvm/Argument.h @@ -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; } diff --git a/include/llvm/BasicBlock.h b/include/llvm/BasicBlock.h index 2b7b6301365..b48693f0dcd 100644 --- a/include/llvm/BasicBlock.h +++ b/include/llvm/BasicBlock.h @@ -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 /// diff --git a/include/llvm/Constant.h b/include/llvm/Constant.h index cc73b53b497..112cb4d2abc 100644 --- a/include/llvm/Constant.h +++ b/include/llvm/Constant.h @@ -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... /// diff --git a/include/llvm/Function.h b/include/llvm/Function.h index 6c1f4692187..112958002c9 100644 --- a/include/llvm/Function.h +++ b/include/llvm/Function.h @@ -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 diff --git a/include/llvm/GlobalVariable.h b/include/llvm/GlobalVariable.h index 1a951774fd3..9f73911872d 100644 --- a/include/llvm/GlobalVariable.h +++ b/include/llvm/GlobalVariable.h @@ -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 diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h index 8d69afa7a6d..ae8d5caf08a 100644 --- a/include/llvm/Instruction.h +++ b/include/llvm/Instruction.h @@ -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. /// diff --git a/include/llvm/Value.h b/include/llvm/Value.h index b9db5d643a6..f59e9461282 100644 --- a/include/llvm/Value.h +++ b/include/llvm/Value.h @@ -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; }