diff options
author | Dan Gohman <gohman@apple.com> | 2008-10-16 01:49:15 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-10-16 01:49:15 +0000 |
commit | 8e8b8a223c2b0e69f44c0639f846260c8011668f (patch) | |
tree | b39ffe640aebc9d306c008272b7ab43bcd743f59 /lib/Target/Mips | |
parent | fcab2bd2f3c849816fffff71342477788985b403 (diff) | |
download | external_llvm-8e8b8a223c2b0e69f44c0639f846260c8011668f.zip external_llvm-8e8b8a223c2b0e69f44c0639f846260c8011668f.tar.gz external_llvm-8e8b8a223c2b0e69f44c0639f846260c8011668f.tar.bz2 |
Const-ify several TargetInstrInfo methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57622 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips')
-rw-r--r-- | lib/Target/Mips/MipsInstrInfo.cpp | 4 | ||||
-rw-r--r-- | lib/Target/Mips/MipsInstrInfo.h | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/Target/Mips/MipsInstrInfo.cpp b/lib/Target/Mips/MipsInstrInfo.cpp index 3e6ce53..146c5ca 100644 --- a/lib/Target/Mips/MipsInstrInfo.cpp +++ b/lib/Target/Mips/MipsInstrInfo.cpp @@ -281,7 +281,7 @@ void MipsInstrInfo::loadRegFromAddr(MachineFunction &MF, unsigned DestReg, MachineInstr *MipsInstrInfo:: foldMemoryOperand(MachineFunction &MF, MachineInstr* MI, - SmallVectorImpl<unsigned> &Ops, int FI) const + const SmallVectorImpl<unsigned> &Ops, int FI) const { if (Ops.size() != 1) return NULL; @@ -602,7 +602,7 @@ RemoveBranch(MachineBasicBlock &MBB) const /// BlockHasNoFallThrough - Analyze if MachineBasicBlock does not /// fall-through into its successor block. bool MipsInstrInfo:: -BlockHasNoFallThrough(MachineBasicBlock &MBB) const +BlockHasNoFallThrough(const MachineBasicBlock &MBB) const { if (MBB.empty()) return false; diff --git a/lib/Target/Mips/MipsInstrInfo.h b/lib/Target/Mips/MipsInstrInfo.h index 7615c71..31e9cfa 100644 --- a/lib/Target/Mips/MipsInstrInfo.h +++ b/lib/Target/Mips/MipsInstrInfo.h @@ -196,17 +196,17 @@ public: virtual MachineInstr* foldMemoryOperand(MachineFunction &MF, MachineInstr* MI, - SmallVectorImpl<unsigned> &Ops, + const SmallVectorImpl<unsigned> &Ops, int FrameIndex) const; virtual MachineInstr* foldMemoryOperand(MachineFunction &MF, MachineInstr* MI, - SmallVectorImpl<unsigned> &Ops, + const SmallVectorImpl<unsigned> &Ops, MachineInstr* LoadMI) const { return 0; } - virtual bool BlockHasNoFallThrough(MachineBasicBlock &MBB) const; + virtual bool BlockHasNoFallThrough(const MachineBasicBlock &MBB) const; virtual bool ReverseBranchCondition(SmallVectorImpl<MachineOperand> &Cond) const; |