1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

Rename a parameter.

llvm-svn: 37307
This commit is contained in:
Evan Cheng 2007-05-23 07:21:11 +00:00
parent f2d1d0124e
commit 9f763bd3fd

View File

@ -61,7 +61,7 @@ MachineInstr *TargetInstrInfo::commuteInstruction(MachineInstr *MI) const {
}
bool TargetInstrInfo::PredicateInstruction(MachineInstr *MI,
std::vector<MachineOperand> &Cond) const {
std::vector<MachineOperand> &Pred) const {
bool MadeChange = false;
const TargetInstrDescriptor *TID = MI->getInstrDescriptor();
if (TID->Flags & M_PREDICABLE) {
@ -69,13 +69,13 @@ bool TargetInstrInfo::PredicateInstruction(MachineInstr *MI,
if ((TID->OpInfo[i].Flags & M_PREDICATE_OPERAND)) {
MachineOperand &MO = MI->getOperand(i);
if (MO.isReg()) {
MO.setReg(Cond[j].getReg());
MO.setReg(Pred[j].getReg());
MadeChange = true;
} else if (MO.isImm()) {
MO.setImm(Cond[j].getImmedValue());
MO.setImm(Pred[j].getImmedValue());
MadeChange = true;
} else if (MO.isMBB()) {
MO.setMachineBasicBlock(Cond[j].getMachineBasicBlock());
MO.setMachineBasicBlock(Pred[j].getMachineBasicBlock());
MadeChange = true;
}
++j;