summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commitcc77b84fcb8d63404968a2af9f115bd87e8b8d2a (patch)
tree63acb463ead68ed45d8810bf850a4092ff8bf9e7 /llvm/lib
parented2fb1cf936ee10e2fb60424a4dc0679f336c7b3 (diff)
downloadbcm5719-llvm-cc77b84fcb8d63404968a2af9f115bd87e8b8d2a.tar.gz
bcm5719-llvm-cc77b84fcb8d63404968a2af9f115bd87e8b8d2a.zip
Constants never get names.
llvm-svn: 20459
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/Constants.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/VMCore/Constants.cpp b/llvm/lib/VMCore/Constants.cpp
index a77f8643ebb..99a15eae704 100644
--- a/llvm/lib/VMCore/Constants.cpp
+++ b/llvm/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() {
OpenPOWER on IntegriCloud