aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore/Function.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/VMCore/Function.cpp')
-rw-r--r--lib/VMCore/Function.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp
index 7cced301e6..df8d1f904f 100644
--- a/lib/VMCore/Function.cpp
+++ b/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);