forked from OSchip/llvm-project
Hrm, another minor cleanup, which I missed before
llvm-svn: 10753
This commit is contained in:
parent
03c71fa8c5
commit
570c69ce01
|
@ -128,7 +128,7 @@ void Function::setName(const std::string &name, SymbolTable *ST) {
|
|||
"Invalid symtab argument!");
|
||||
if ((P = getParent()) && hasName()) P->getSymbolTable().remove(this);
|
||||
Value::setName(name);
|
||||
if (P && getName() != "") P->getSymbolTable().insert(this);
|
||||
if (P && hasName()) P->getSymbolTable().insert(this);
|
||||
}
|
||||
|
||||
void Function::setParent(Module *parent) {
|
||||
|
|
Loading…
Reference in New Issue