forked from OSchip/llvm-project
second argument to Value::setName is now gone.
llvm-svn: 20463
This commit is contained in:
parent
7c832fb0b2
commit
6d0a24c608
|
@ -1063,7 +1063,7 @@ void BytecodeReader::ParseSymbolTable(Function *CurrentFunction,
|
||||||
}
|
}
|
||||||
if (V == 0)
|
if (V == 0)
|
||||||
error("Failed value look-up for name '" + Name + "'");
|
error("Failed value look-up for name '" + Name + "'");
|
||||||
V->setName(Name, ST);
|
V->setName(Name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -253,7 +253,7 @@ bool RPR::PeepholeOptimize(BasicBlock *BB, BasicBlock::iterator &BI) {
|
||||||
if (!Src->hasName() && CI->hasName()) {
|
if (!Src->hasName() && CI->hasName()) {
|
||||||
std::string Name = CI->getName();
|
std::string Name = CI->getName();
|
||||||
CI->setName("");
|
CI->setName("");
|
||||||
Src->setName(Name, &BB->getParent()->getSymbolTable());
|
Src->setName(Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
// DCE the instruction now, to avoid having the iterative version of DCE
|
// DCE the instruction now, to avoid having the iterative version of DCE
|
||||||
|
|
|
@ -34,9 +34,9 @@ void llvm::ReplaceInstWithValue(BasicBlock::InstListType &BIL,
|
||||||
// Delete the unnecessary instruction now...
|
// Delete the unnecessary instruction now...
|
||||||
BI = BIL.erase(BI);
|
BI = BIL.erase(BI);
|
||||||
|
|
||||||
// Make sure to propagate a name if there is one already...
|
// Make sure to propagate a name if there is one already.
|
||||||
if (OldName.size() && !V->hasName())
|
if (!OldName.empty() && !V->hasName())
|
||||||
V->setName(OldName, &BIL.getParent()->getSymbolTable());
|
V->setName(OldName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue