mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 17:34:41 +00:00
second argument to Value::setName is now gone.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20463 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3267265d78
commit
7acff25f7f
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user