Constants never get names.
authorChris Lattner <sabre@nondot.org>
Sat, 5 Mar 2005 19:01:59 +0000 (19:01 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 5 Mar 2005 19:01:59 +0000 (19:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20459 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Constants.cpp

index a77f8643ebb3b060a90907bc0446774b46abfc90..99a15eae704811488183aff713ea48b8eb6569dd 100644 (file)
@@ -31,11 +31,8 @@ ConstantBool *ConstantBool::False = new ConstantBool(false);
 //                              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() {