summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/BasicBlock.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-03-05 19:01:49 +0000
committerChris Lattner <sabre@nondot.org>2005-03-05 19:01:49 +0000
commited2fb1cf936ee10e2fb60424a4dc0679f336c7b3 (patch)
treefff8a36156bacee5313df991c8d112a8a6157adb /llvm/lib/VMCore/BasicBlock.cpp
parentf18c871b584a5acb8b2d0377ea918ae0590a3395 (diff)
downloadbcm5719-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.cpp4
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);
OpenPOWER on IntegriCloud