summaryrefslogtreecommitdiff
path: root/lib/VMCore
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-03-05 19:01:59 +0000
committerChris Lattner <sabre@nondot.org>2005-03-05 19:01:59 +0000
commitffdb920ec2dd2c61c4466c87268de232e40ad72c (patch)
treedc4498626c3676cf87ebf9eabd3eae7ea220a38f /lib/VMCore
parent18221ed50707342bc4c655b33a3d3dc652463811 (diff)
Constants never get names.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20459 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/Constants.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp
index a77f8643ebb..99a15eae704 100644
--- a/lib/VMCore/Constants.cpp
+++ b/lib/VMCore/Constants.cpp
@@ -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() {