diff options
-rw-r--r-- | include/llvm/Target/MachineInstrInfo.h | 3 | ||||
-rw-r--r-- | include/llvm/Target/TargetInstrInfo.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/Target/MachineInstrInfo.h b/include/llvm/Target/MachineInstrInfo.h index 465776b015..383e9ca969 100644 --- a/include/llvm/Target/MachineInstrInfo.h +++ b/include/llvm/Target/MachineInstrInfo.h @@ -176,7 +176,8 @@ public: // delete this later ******* - bool isPhi(const MachineOpCode opCode) { return isDummyPhiInstr(opCode); } + bool isPhi(const MachineOpCode opCode) const + { return isDummyPhiInstr(opCode); } // Check if an instruction can be issued before its operands are ready, diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h index 465776b015..383e9ca969 100644 --- a/include/llvm/Target/TargetInstrInfo.h +++ b/include/llvm/Target/TargetInstrInfo.h @@ -176,7 +176,8 @@ public: // delete this later ******* - bool isPhi(const MachineOpCode opCode) { return isDummyPhiInstr(opCode); } + bool isPhi(const MachineOpCode opCode) const + { return isDummyPhiInstr(opCode); } // Check if an instruction can be issued before its operands are ready, |