summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Function.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-03-05 19:51:50 +0000
committerChris Lattner <sabre@nondot.org>2005-03-05 19:51:50 +0000
commitcdb9bfc150beba77d461644dd843d6c09b8e98e3 (patch)
treeed86259398b309ac062429ee734a3fad2b4bcd82 /llvm/lib/VMCore/Function.cpp
parent6d0a24c60867e56814e5723510184da5dac03077 (diff)
downloadbcm5719-llvm-cdb9bfc150beba77d461644dd843d6c09b8e98e3.tar.gz
bcm5719-llvm-cdb9bfc150beba77d461644dd843d6c09b8e98e3.zip
remove all of the various setName implementations, consolidating them into
Value::setName, which is no longer virtual. llvm-svn: 20464
Diffstat (limited to 'llvm/lib/VMCore/Function.cpp')
-rw-r--r--llvm/lib/VMCore/Function.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/llvm/lib/VMCore/Function.cpp b/llvm/lib/VMCore/Function.cpp
index 7cced301e63..df8d1f904f3 100644
--- a/llvm/lib/VMCore/Function.cpp
+++ b/llvm/lib/VMCore/Function.cpp
@@ -62,15 +62,6 @@ Argument::Argument(const Type *Ty, const std::string &Name, Function *Par)
Par->getArgumentList().push_back(this);
}
-
-// Specialize setName to take care of symbol table majik
-void Argument::setName(const std::string &name) {
- Function *P;
- if ((P = getParent()) && hasName()) P->getSymbolTable().remove(this);
- Value::setName(name);
- if (P && hasName()) P->getSymbolTable().insert(this);
-}
-
void Argument::setParent(Function *parent) {
if (getParent())
LeakDetector::addGarbageObject(this);
@@ -118,14 +109,6 @@ Function::~Function() {
delete SymTab;
}
-// Specialize setName to take care of symbol table majik
-void Function::setName(const std::string &name) {
- Module *P;
- if ((P = getParent()) && hasName()) P->getSymbolTable().remove(this);
- Value::setName(name);
- if (P && hasName()) P->getSymbolTable().insert(this);
-}
-
void Function::setParent(Module *parent) {
if (getParent())
LeakDetector::addGarbageObject(this);
OpenPOWER on IntegriCloud