From 38453eebdc6390c4050d592c4fdd96c395524217 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Sat, 13 Sep 2008 17:58:21 +0000 Subject: 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. llvm-svn: 56189 --- llvm/lib/Target/Sparc/SparcInstrInfo.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'llvm/lib/Target/Sparc/SparcInstrInfo.cpp') diff --git a/llvm/lib/Target/Sparc/SparcInstrInfo.cpp b/llvm/lib/Target/Sparc/SparcInstrInfo.cpp index ab18044d6d4..927d268762e 100644 --- a/llvm/lib/Target/Sparc/SparcInstrInfo.cpp +++ b/llvm/lib/Target/Sparc/SparcInstrInfo.cpp @@ -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()); } } -- cgit v1.2.3