remove all of the various setName implementations, consolidating them into
[oota-llvm.git] / lib / VMCore / Globals.cpp
index efa588bd561c3a539de2a120b3dcb5813a163487..c0264ae3c11d35414e394c222ef6bdc178bc66c2 100644 (file)
@@ -99,14 +99,6 @@ void GlobalVariable::setParent(Module *parent) {
     LeakDetector::removeGarbageObject(this);
 }
 
-// Specialize setName to take care of symbol table majik
-void GlobalVariable::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 GlobalVariable::removeFromParent() {
   getParent()->getGlobalList().remove(this);
 }