diff options
author | Chris Lattner <sabre@nondot.org> | 2005-03-05 19:01:49 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-03-05 19:01:49 +0000 |
commit | 18221ed50707342bc4c655b33a3d3dc652463811 (patch) | |
tree | e68a76be38b7555ba679ac59b3220e4d080d5cf6 /lib/VMCore/BasicBlock.cpp | |
parent | d0478744b3b5232694d0f887b3210078de5266c4 (diff) |
Remove the 2nd argument to Value::setName
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20458 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/BasicBlock.cpp')
-rw-r--r-- | lib/VMCore/BasicBlock.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/VMCore/BasicBlock.cpp b/lib/VMCore/BasicBlock.cpp index 92bdc50e78..232a4e3391 100644 --- a/lib/VMCore/BasicBlock.cpp +++ b/lib/VMCore/BasicBlock.cpp @@ -96,10 +96,8 @@ void BasicBlock::setParent(Function *parent) { } // Specialize setName to take care of symbol table majik -void BasicBlock::setName(const std::string &name, SymbolTable *ST) { +void BasicBlock::setName(const std::string &name) { Function *P; - assert((ST == 0 || (!getParent() || ST == &getParent()->getSymbolTable())) && - "Invalid symtab argument!"); if ((P = getParent()) && hasName()) P->getSymbolTable().remove(this); Value::setName(name); if (P && hasName()) P->getSymbolTable().insert(this); |