diff options
author | Chris Lattner <sabre@nondot.org> | 2005-03-05 19:51:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-03-05 19:51:50 +0000 |
commit | 0d1e40728d668085257b78657b381e1f13d77d52 (patch) | |
tree | 00e51cc189ccb0faa187276ed1c6ca5f2d953b9e /lib/VMCore/Instruction.cpp | |
parent | 7acff25f7f48ccbc8ca55032a59bfd4102ebed72 (diff) |
remove all of the various setName implementations, consolidating them into
Value::setName, which is no longer virtual.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20464 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Instruction.cpp')
-rw-r--r-- | lib/VMCore/Instruction.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/VMCore/Instruction.cpp b/lib/VMCore/Instruction.cpp index eeba47b52e..4ccbd74dfd 100644 --- a/lib/VMCore/Instruction.cpp +++ b/lib/VMCore/Instruction.cpp @@ -57,15 +57,6 @@ void Instruction::setParent(BasicBlock *P) { Parent = P; } -// Specialize setName to take care of symbol table majik -void Instruction::setName(const std::string &name) { - BasicBlock *P = 0; Function *PP = 0; - if ((P = getParent()) && (PP = P->getParent()) && hasName()) - PP->getSymbolTable().remove(this); - Value::setName(name); - if (PP && hasName()) PP->getSymbolTable().insert(this); -} - void Instruction::removeFromParent() { getParent()->getInstList().remove(this); } |