mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-13 15:37:24 +00:00
use precise getters
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63403 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c1bb13f1b8
commit
ae6ab1e950
@ -811,11 +811,14 @@ static void WriteInstruction(const Instruction &I, unsigned InstID,
|
||||
}
|
||||
break;
|
||||
case Instruction::Br:
|
||||
Code = bitc::FUNC_CODE_INST_BR;
|
||||
Vals.push_back(VE.getValueID(I.getOperand(0)));
|
||||
if (cast<BranchInst>(I).isConditional()) {
|
||||
Vals.push_back(VE.getValueID(I.getOperand(1)));
|
||||
Vals.push_back(VE.getValueID(I.getOperand(2)));
|
||||
{
|
||||
Code = bitc::FUNC_CODE_INST_BR;
|
||||
BranchInst &II(cast<BranchInst>(I));
|
||||
Vals.push_back(VE.getValueID(II.getSuccessor(0)));
|
||||
if (II.isConditional()) {
|
||||
Vals.push_back(VE.getValueID(II.getSuccessor(1)));
|
||||
Vals.push_back(VE.getValueID(II.getCondition()));
|
||||
}
|
||||
}
|
||||
break;
|
||||
case Instruction::Switch:
|
||||
|
Loading…
x
Reference in New Issue
Block a user