From 984adc25c981155040f3a7e3801d2292e18880b1 Mon Sep 17 00:00:00 2001 From: Ruchira Sasanka Date: Sat, 10 Nov 2001 20:58:58 +0000 Subject: [PATCH] Made isPhi const git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1251 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Target/MachineInstrInfo.h | 3 ++- 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 465776b0158..383e9ca9693 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 465776b0158..383e9ca9693 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,