aboutsummaryrefslogtreecommitdiffstats
path: root/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
commit18221ed50707342bc4c655b33a3d3dc652463811 (patch)
treee68a76be38b7555ba679ac59b3220e4d080d5cf6 /lib/VMCore/BasicBlock.cpp
parentd0478744b3b5232694d0f887b3210078de5266c4 (diff)
downloadexternal_llvm-18221ed50707342bc4c655b33a3d3dc652463811.zip
external_llvm-18221ed50707342bc4c655b33a3d3dc652463811.tar.gz
external_llvm-18221ed50707342bc4c655b33a3d3dc652463811.tar.bz2
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.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/VMCore/BasicBlock.cpp b/lib/VMCore/BasicBlock.cpp
index 92bdc50..232a4e3 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);