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 | f18c871b584a5acb8b2d0377ea918ae0590a3395 (patch) | |
| tree | 400bb96af7d45a8c4d362571de4afb0c61f21a6b | |
| parent | 15ac102737447d49fcf5abf879beb5ceb6346932 (diff) | |
| download | bcm5719-llvm-f18c871b584a5acb8b2d0377ea918ae0590a3395.tar.gz bcm5719-llvm-f18c871b584a5acb8b2d0377ea918ae0590a3395.zip | |
Remove the second argument to Value::setName, it is never needed.
llvm-svn: 20457
| -rw-r--r-- | llvm/include/llvm/Argument.h | 4 | ||||
| -rw-r--r-- | llvm/include/llvm/BasicBlock.h | 2 | ||||
| -rw-r--r-- | llvm/include/llvm/Constant.h | 4 | ||||
| -rw-r--r-- | llvm/include/llvm/Function.h | 4 | ||||
| -rw-r--r-- | llvm/include/llvm/GlobalVariable.h | 4 | ||||
| -rw-r--r-- | llvm/include/llvm/Instruction.h | 4 | ||||
| -rw-r--r-- | llvm/include/llvm/Value.h | 2 |
7 files changed, 12 insertions, 12 deletions
diff --git a/llvm/include/llvm/Argument.h b/llvm/include/llvm/Argument.h index d39c373b0a5..51e53b17bd1 100644 --- a/llvm/include/llvm/Argument.h +++ b/llvm/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/llvm/include/llvm/BasicBlock.h b/llvm/include/llvm/BasicBlock.h index 2b7b6301365..b48693f0dcd 100644 --- a/llvm/include/llvm/BasicBlock.h +++ b/llvm/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/llvm/include/llvm/Constant.h b/llvm/include/llvm/Constant.h index cc73b53b497..112cb4d2abc 100644 --- a/llvm/include/llvm/Constant.h +++ b/llvm/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/llvm/include/llvm/Function.h b/llvm/include/llvm/Function.h index 6c1f4692187..112958002c9 100644 --- a/llvm/include/llvm/Function.h +++ b/llvm/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/llvm/include/llvm/GlobalVariable.h b/llvm/include/llvm/GlobalVariable.h index 1a951774fd3..9f73911872d 100644 --- a/llvm/include/llvm/GlobalVariable.h +++ b/llvm/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/llvm/include/llvm/Instruction.h b/llvm/include/llvm/Instruction.h index 8d69afa7a6d..ae8d5caf08a 100644 --- a/llvm/include/llvm/Instruction.h +++ b/llvm/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/llvm/include/llvm/Value.h b/llvm/include/llvm/Value.h index b9db5d643a6..f59e9461282 100644 --- a/llvm/include/llvm/Value.h +++ b/llvm/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; } |

