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
This commit is contained in:
Chris Lattner 2005-03-05 18:59:36 +00:00
parent 60fbe9b6d0
commit d0478744b3
7 changed files with 12 additions and 12 deletions

View File

@ -39,8 +39,8 @@ public:
/// ///
Argument(const Type *Ty, const std::string &Name = "", Function *F = 0); Argument(const Type *Ty, const std::string &Name = "", Function *F = 0);
/// setName - Specialize setName to handle symbol table majik... /// setName - Specialize setName to handle symbol table majik.
virtual void setName(const std::string &name, SymbolTable *ST = 0); virtual void setName(const std::string &name);
inline const Function *getParent() const { return Parent; } inline const Function *getParent() const { return Parent; }
inline Function *getParent() { return Parent; } inline Function *getParent() { return Parent; }

View File

@ -77,7 +77,7 @@ public:
~BasicBlock(); ~BasicBlock();
// Specialize setName to take care of symbol table majik // 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 /// getParent - Return the enclosing method, or null if none
/// ///

View File

@ -26,8 +26,8 @@ protected:
void destroyConstantImpl(); void destroyConstantImpl();
public: public:
// setName - Specialize setName to handle symbol table majik... // setName - Specialize setName to handle symbol table majik.
virtual void setName(const std::string &name, SymbolTable *ST = 0); virtual void setName(const std::string &name);
/// Static constructor to get a '0' constant of arbitrary type... /// Static constructor to get a '0' constant of arbitrary type...
/// ///

View File

@ -85,8 +85,8 @@ public:
const std::string &N = "", Module *M = 0); const std::string &N = "", Module *M = 0);
~Function(); ~Function();
// Specialize setName to handle symbol table majik... // Specialize setName to handle symbol table majik.
virtual void setName(const std::string &name, SymbolTable *ST = 0); virtual void setName(const std::string &name);
const Type *getReturnType() const; // Return the type of the ret val const Type *getReturnType() const; // Return the type of the ret val
const FunctionType *getFunctionType() const; // Return the FunctionType for me const FunctionType *getFunctionType() const; // Return the FunctionType for me

View File

@ -51,8 +51,8 @@ public:
Constant *Initializer = 0, const std::string &Name = "", Constant *Initializer = 0, const std::string &Name = "",
Module *Parent = 0); Module *Parent = 0);
// Specialize setName to handle symbol table majik... // Specialize setName to handle symbol table majik.
virtual void setName(const std::string &name, SymbolTable *ST = 0); virtual void setName(const std::string &name);
/// isExternal - Is this global variable lacking an initializer? If so, the /// isExternal - Is this global variable lacking an initializer? If so, the
/// global variable is defined in some other translation unit, and is thus /// global variable is defined in some other translation unit, and is thus

View File

@ -54,8 +54,8 @@ public:
assert(Parent == 0 && "Instruction still linked in the program!"); assert(Parent == 0 && "Instruction still linked in the program!");
} }
// Specialize setName to handle symbol table majik... // Specialize setName to handle symbol table majik.
virtual void setName(const std::string &name, SymbolTable *ST = 0); virtual void setName(const std::string &name);
/// mayWriteToMemory - Return true if this instruction may modify memory. /// mayWriteToMemory - Return true if this instruction may modify memory.
/// ///

View File

@ -75,7 +75,7 @@ public:
inline bool hasName() const { return !Name.empty(); } inline bool hasName() const { return !Name.empty(); }
inline const std::string &getName() const { return Name; } 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; Name = name;
} }