[llvm-commits] CVS: llvm/include/llvm/Argument.h BasicBlock.h Constant.h Function.h GlobalVariable.h Instruction.h Value.h
Chris Lattner
lattner at cs.uiuc.edu
Sat Mar 5 10:59:52 PST 2005
Changes in directory llvm/include/llvm:
Argument.h updated: 1.8 -> 1.9
BasicBlock.h updated: 1.48 -> 1.49
Constant.h updated: 1.20 -> 1.21
Function.h updated: 1.59 -> 1.60
GlobalVariable.h updated: 1.30 -> 1.31
Instruction.h updated: 1.63 -> 1.64
Value.h updated: 1.71 -> 1.72
---
Log message:
Remove the second argument to Value::setName, it is never needed.
---
Diffs of the changes: (+12 -12)
Argument.h | 4 ++--
BasicBlock.h | 2 +-
Constant.h | 4 ++--
Function.h | 4 ++--
GlobalVariable.h | 4 ++--
Instruction.h | 4 ++--
Value.h | 2 +-
7 files changed, 12 insertions(+), 12 deletions(-)
Index: llvm/include/llvm/Argument.h
diff -u llvm/include/llvm/Argument.h:1.8 llvm/include/llvm/Argument.h:1.9
--- llvm/include/llvm/Argument.h:1.8 Thu Mar 11 17:42:24 2004
+++ llvm/include/llvm/Argument.h Sat Mar 5 12:59:35 2005
@@ -39,8 +39,8 @@
///
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; }
Index: llvm/include/llvm/BasicBlock.h
diff -u llvm/include/llvm/BasicBlock.h:1.48 llvm/include/llvm/BasicBlock.h:1.49
--- llvm/include/llvm/BasicBlock.h:1.48 Wed Feb 23 20:37:17 2005
+++ llvm/include/llvm/BasicBlock.h Sat Mar 5 12:59:35 2005
@@ -77,7 +77,7 @@
~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
///
Index: llvm/include/llvm/Constant.h
diff -u llvm/include/llvm/Constant.h:1.20 llvm/include/llvm/Constant.h:1.21
--- llvm/include/llvm/Constant.h:1.20 Fri Jan 28 18:32:00 2005
+++ llvm/include/llvm/Constant.h Sat Mar 5 12:59:36 2005
@@ -26,8 +26,8 @@
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...
///
Index: llvm/include/llvm/Function.h
diff -u llvm/include/llvm/Function.h:1.59 llvm/include/llvm/Function.h:1.60
--- llvm/include/llvm/Function.h:1.59 Sat Jan 29 18:08:26 2005
+++ llvm/include/llvm/Function.h Sat Mar 5 12:59:36 2005
@@ -85,8 +85,8 @@
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
Index: llvm/include/llvm/GlobalVariable.h
diff -u llvm/include/llvm/GlobalVariable.h:1.30 llvm/include/llvm/GlobalVariable.h:1.31
--- llvm/include/llvm/GlobalVariable.h:1.30 Fri Jan 28 18:32:30 2005
+++ llvm/include/llvm/GlobalVariable.h Sat Mar 5 12:59:36 2005
@@ -51,8 +51,8 @@
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
Index: llvm/include/llvm/Instruction.h
diff -u llvm/include/llvm/Instruction.h:1.63 llvm/include/llvm/Instruction.h:1.64
--- llvm/include/llvm/Instruction.h:1.63 Fri Jan 28 18:33:00 2005
+++ llvm/include/llvm/Instruction.h Sat Mar 5 12:59:36 2005
@@ -54,8 +54,8 @@
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.
///
Index: llvm/include/llvm/Value.h
diff -u llvm/include/llvm/Value.h:1.71 llvm/include/llvm/Value.h:1.72
--- llvm/include/llvm/Value.h:1.71 Wed Feb 23 10:50:59 2005
+++ llvm/include/llvm/Value.h Sat Mar 5 12:59:36 2005
@@ -75,7 +75,7 @@
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;
}
More information about the llvm-commits
mailing list