second argument to Value::setName is now gone.

llvm-svn: 20463
This commit is contained in:
Chris Lattner 2005-03-05 19:05:20 +00:00
parent 7c832fb0b2
commit 6d0a24c608
3 changed files with 5 additions and 5 deletions

View File

@ -1063,7 +1063,7 @@ void BytecodeReader::ParseSymbolTable(Function *CurrentFunction,
}
if (V == 0)
error("Failed value look-up for name '" + Name + "'");
V->setName(Name, ST);
V->setName(Name);
}
}
}

View File

@ -253,7 +253,7 @@ bool RPR::PeepholeOptimize(BasicBlock *BB, BasicBlock::iterator &BI) {
if (!Src->hasName() && CI->hasName()) {
std::string Name = CI->getName();
CI->setName("");
Src->setName(Name, &BB->getParent()->getSymbolTable());
Src->setName(Name);
}
// DCE the instruction now, to avoid having the iterative version of DCE

View File

@ -34,9 +34,9 @@ void llvm::ReplaceInstWithValue(BasicBlock::InstListType &BIL,
// Delete the unnecessary instruction now...
BI = BIL.erase(BI);
// Make sure to propagate a name if there is one already...
if (OldName.size() && !V->hasName())
V->setName(OldName, &BIL.getParent()->getSymbolTable());
// Make sure to propagate a name if there is one already.
if (!OldName.empty() && !V->hasName())
V->setName(OldName);
}