diff options
author | Chris Lattner <sabre@nondot.org> | 2005-03-05 19:51:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-03-05 19:51:50 +0000 |
commit | 0d1e40728d668085257b78657b381e1f13d77d52 (patch) | |
tree | 00e51cc189ccb0faa187276ed1c6ca5f2d953b9e /include | |
parent | 7acff25f7f48ccbc8ca55032a59bfd4102ebed72 (diff) | |
download | llvm-0d1e40728d668085257b78657b381e1f13d77d52.tar.gz llvm-0d1e40728d668085257b78657b381e1f13d77d52.tar.bz2 llvm-0d1e40728d668085257b78657b381e1f13d77d52.tar.xz |
remove all of the various setName implementations, consolidating them into
Value::setName, which is no longer virtual.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20464 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Argument.h | 3 | ||||
-rw-r--r-- | include/llvm/BasicBlock.h | 3 | ||||
-rw-r--r-- | include/llvm/Constant.h | 3 | ||||
-rw-r--r-- | include/llvm/Function.h | 3 | ||||
-rw-r--r-- | include/llvm/GlobalVariable.h | 3 | ||||
-rw-r--r-- | include/llvm/Instruction.h | 3 | ||||
-rw-r--r-- | include/llvm/Value.h | 4 |
7 files changed, 1 insertions, 21 deletions
diff --git a/include/llvm/Argument.h b/include/llvm/Argument.h index 51e53b17bd..3c38cdea03 100644 --- a/include/llvm/Argument.h +++ b/include/llvm/Argument.h @@ -39,9 +39,6 @@ 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); - 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 b48693f0dc..ad509bb2cc 100644 --- a/include/llvm/BasicBlock.h +++ b/include/llvm/BasicBlock.h @@ -76,9 +76,6 @@ public: BasicBlock *InsertBefore = 0); ~BasicBlock(); - // Specialize setName to take care of symbol table majik - virtual void setName(const std::string &name); - /// getParent - Return the enclosing method, or null if none /// const Function *getParent() const { return InstList.getParent(); } diff --git a/include/llvm/Constant.h b/include/llvm/Constant.h index 112cb4d2ab..43a736e49c 100644 --- a/include/llvm/Constant.h +++ b/include/llvm/Constant.h @@ -26,9 +26,6 @@ protected: void destroyConstantImpl(); public: - // 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... /// static Constant *getNullValue(const Type *Ty); diff --git a/include/llvm/Function.h b/include/llvm/Function.h index 112958002c..05ac47ddd6 100644 --- a/include/llvm/Function.h +++ b/include/llvm/Function.h @@ -85,9 +85,6 @@ public: const std::string &N = "", Module *M = 0); ~Function(); - // 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 9f73911872..1faa095d05 100644 --- a/include/llvm/GlobalVariable.h +++ b/include/llvm/GlobalVariable.h @@ -51,9 +51,6 @@ 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); - /// isExternal - Is this global variable lacking an initializer? If so, the /// global variable is defined in some other translation unit, and is thus /// externally defined here. diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h index ae8d5caf08..da0767d47f 100644 --- a/include/llvm/Instruction.h +++ b/include/llvm/Instruction.h @@ -54,9 +54,6 @@ public: assert(Parent == 0 && "Instruction still linked in the program!"); } - // Specialize setName to handle symbol table majik. - virtual void setName(const std::string &name); - /// mayWriteToMemory - Return true if this instruction may modify memory. /// virtual bool mayWriteToMemory() const { return false; } diff --git a/include/llvm/Value.h b/include/llvm/Value.h index f59e946128..164c7ee811 100644 --- a/include/llvm/Value.h +++ b/include/llvm/Value.h @@ -75,9 +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) { - Name = name; - } + void setName(const std::string &name); /// replaceAllUsesWith - Go through the uses list for this definition and make /// each use point to "V" instead of "this". After this completes, 'this's |