mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Remove isImm(), isReg(), and friends, in favor of
isImmediate(), isRegister(), and friends, to avoid confusion about having two different names with the same meaning. I'm not attached to the longer names, and would be ok with changing to the shorter names if others prefer it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56189 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -173,7 +173,7 @@ void SparcInstrInfo::storeRegToAddr(MachineFunction &MF, unsigned SrcReg,
|
||||
else if (MO.isImmediate())
|
||||
MIB.addImm(MO.getImm());
|
||||
else {
|
||||
assert(MO.isFI());
|
||||
assert(MO.isFrameIndex());
|
||||
MIB.addFrameIndex(MO.getIndex());
|
||||
}
|
||||
}
|
||||
@ -212,12 +212,12 @@ void SparcInstrInfo::loadRegFromAddr(MachineFunction &MF, unsigned DestReg,
|
||||
MachineInstrBuilder MIB = BuildMI(MF, get(Opc), DestReg);
|
||||
for (unsigned i = 0, e = Addr.size(); i != e; ++i) {
|
||||
MachineOperand &MO = Addr[i];
|
||||
if (MO.isReg())
|
||||
if (MO.isRegister())
|
||||
MIB.addReg(MO.getReg());
|
||||
else if (MO.isImm())
|
||||
else if (MO.isImmediate())
|
||||
MIB.addImm(MO.getImm());
|
||||
else {
|
||||
assert(MO.isFI());
|
||||
assert(MO.isFrameIndex());
|
||||
MIB.addFrameIndex(MO.getIndex());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user