Expose hasLiveCondCodeDef as a member function of the X86InstrInfo class. NFC
[oota-llvm.git] / lib / Target / X86 / X86InstrInfo.cpp
index c3e862b09edb9bec8e02195f62922dbbe1368c3f..17980e6a80531ec5f132a9464284bbcd6e030c31 100644 (file)
@@ -2431,7 +2431,7 @@ void X86InstrInfo::reMaterialize(MachineBasicBlock &MBB,
 }
 
 /// True if MI has a condition code def, e.g. EFLAGS, that is not marked dead.
-static bool hasLiveCondCodeDef(MachineInstr *MI) {
+bool X86InstrInfo::hasLiveCondCodeDef(MachineInstr *MI) const {
   for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
     MachineOperand &MO = MI->getOperand(i);
     if (MO.isReg() && MO.isDef() &&