Constify the machine instruction passed into the
[oota-llvm.git] / lib / Target / X86 / X86InstrInfo.cpp
index 8b31f5d5f0984de0e62d5d605878713d73d3cf78..d2c5abe6d6380bae5e86a5d07dadf294f45f117a 100644 (file)
@@ -760,7 +760,8 @@ static inline bool isGVStub(GlobalValue *GV, X86TargetMachine &TM) {
   return TM.getSubtarget<X86Subtarget>().GVRequiresExtraLoad(GV, TM, false);
 }
  
-bool X86InstrInfo::isReallyTriviallyReMaterializable(MachineInstr *MI) const {
+bool
+X86InstrInfo::isReallyTriviallyReMaterializable(const MachineInstr *MI) const {
   switch (MI->getOpcode()) {
   default: break;
     case X86::MOV8rm: