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 | ed2fb1cf936ee10e2fb60424a4dc0679f336c7b3 (patch) | |
tree | fff8a36156bacee5313df991c8d112a8a6157adb /llvm/lib/VMCore/BasicBlock.cpp | |
parent | f18c871b584a5acb8b2d0377ea918ae0590a3395 (diff) | |
download | bcm5719-llvm-ed2fb1cf936ee10e2fb60424a4dc0679f336c7b3.tar.gz bcm5719-llvm-ed2fb1cf936ee10e2fb60424a4dc0679f336c7b3.zip |
Remove the 2nd argument to Value::setName
llvm-svn: 20458
Diffstat (limited to 'llvm/lib/VMCore/BasicBlock.cpp')
-rw-r--r-- | llvm/lib/VMCore/BasicBlock.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/BasicBlock.cpp b/llvm/lib/VMCore/BasicBlock.cpp index 92bdc50e781..232a4e3391b 100644 --- a/llvm/lib/VMCore/BasicBlock.cpp +++ b/llvm/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); |