diff options
author | Chris Lattner <sabre@nondot.org> | 2005-03-05 18:59:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-03-05 18:59:36 +0000 |
commit | d0478744b3b5232694d0f887b3210078de5266c4 (patch) | |
tree | f85fd5971b10f429f20c2d5d07618e816e9a1a70 | |
parent | 60fbe9b6d00c2740da5701ff5c25588867f21422 (diff) | |
download | llvm-d0478744b3b5232694d0f887b3210078de5266c4.tar.gz llvm-d0478744b3b5232694d0f887b3210078de5266c4.tar.bz2 llvm-d0478744b3b5232694d0f887b3210078de5266c4.tar.xz |
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
-rw-r--r-- | include/llvm/Argument.h | 4 | ||||
-rw-r--r-- | include/llvm/BasicBlock.h | 2 | ||||
-rw-r--r-- | include/llvm/Constant.h | 4 | ||||
-rw-r--r-- | include/llvm/Function.h | 4 | ||||
-rw-r--r-- | include/llvm/GlobalVariable.h | 4 | ||||
-rw-r--r-- | include/llvm/Instruction.h | 4 | ||||
-rw-r--r-- | include/llvm/Value.h | 2 |
7 files changed, 12 insertions, 12 deletions
diff --git a/include/llvm/Argument.h b/include/llvm/Argument.h index d39c373b0a..51e53b17bd 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 2b7b630136..b48693f0dc 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 cc73b53b49..112cb4d2ab 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 6c1f469218..112958002c 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 1a951774fd..9f73911872 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 8d69afa7a6..ae8d5caf08 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 b9db5d643a..f59e946128 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; } |