[llvm-commits] CVS: llvm/lib/VMCore/Constants.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Mar 5 11:02:14 PST 2005
Changes in directory llvm/lib/VMCore:
Constants.cpp updated: 1.121 -> 1.122
---
Log message:
Constants never get names.
---
Diffs of the changes: (+2 -5)
Constants.cpp | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
Index: llvm/lib/VMCore/Constants.cpp
diff -u llvm/lib/VMCore/Constants.cpp:1.121 llvm/lib/VMCore/Constants.cpp:1.122
--- llvm/lib/VMCore/Constants.cpp:1.121 Fri Jan 28 18:34:39 2005
+++ llvm/lib/VMCore/Constants.cpp Sat Mar 5 13:01:59 2005
@@ -31,11 +31,8 @@
// Constant Class
//===----------------------------------------------------------------------===//
-// Specialize setName to take care of symbol table majik
-void Constant::setName(const std::string &Name, SymbolTable *ST) {
- assert(ST && "Type::setName - Must provide symbol table argument!");
-
- if (Name.size()) ST->insert(Name, this);
+void Constant::setName(const std::string &Name) {
+ // Constants can't take names.
}
void Constant::destroyConstantImpl() {
More information about the llvm-commits
mailing list