diff options
| author | Dan Gohman <gohman@apple.com> | 2008-11-18 19:49:32 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2008-11-18 19:49:32 +0000 |
| commit | 0b2732598c9beca83906644cdbb95040b7885aac (patch) | |
| tree | 82210908d34142ebffcbd0b6a5ee2f2ea70028f6 /llvm/lib/Target/Mips/MipsInstrInfo.cpp | |
| parent | 119f60e12a3acc1a82c08337a7f90436ab4b8012 (diff) | |
| download | bcm5719-llvm-0b2732598c9beca83906644cdbb95040b7885aac.tar.gz bcm5719-llvm-0b2732598c9beca83906644cdbb95040b7885aac.zip | |
Add more const qualifiers. This fixes build breakage from r59540.
llvm-svn: 59542
Diffstat (limited to 'llvm/lib/Target/Mips/MipsInstrInfo.cpp')
| -rw-r--r-- | llvm/lib/Target/Mips/MipsInstrInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/Mips/MipsInstrInfo.cpp b/llvm/lib/Target/Mips/MipsInstrInfo.cpp index 146c5ca5f3f..8d3c5a0055e 100644 --- a/llvm/lib/Target/Mips/MipsInstrInfo.cpp +++ b/llvm/lib/Target/Mips/MipsInstrInfo.cpp @@ -75,7 +75,7 @@ isMoveInstr(const MachineInstr &MI, unsigned &SrcReg, unsigned &DstReg) const /// not, return 0. This predicate must return 0 if the instruction has /// any side effects other than loading from the stack slot. unsigned MipsInstrInfo:: -isLoadFromStackSlot(MachineInstr *MI, int &FrameIndex) const +isLoadFromStackSlot(const MachineInstr *MI, int &FrameIndex) const { if ((MI->getOpcode() == Mips::LW) || (MI->getOpcode() == Mips::LWC1) || (MI->getOpcode() == Mips::LWC1A) || (MI->getOpcode() == Mips::LDC1)) { @@ -96,7 +96,7 @@ isLoadFromStackSlot(MachineInstr *MI, int &FrameIndex) const /// not, return 0. This predicate must return 0 if the instruction has /// any side effects other than storing to the stack slot. unsigned MipsInstrInfo:: -isStoreToStackSlot(MachineInstr *MI, int &FrameIndex) const +isStoreToStackSlot(const MachineInstr *MI, int &FrameIndex) const { if ((MI->getOpcode() == Mips::SW) || (MI->getOpcode() == Mips::SWC1) || (MI->getOpcode() == Mips::SWC1A) || (MI->getOpcode() == Mips::SDC1)) { |

