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 | cbad42cfd1cc93a41ff26ea2e8895bfbc09f54f2 (patch) | |
| tree | edad12015684d0590e53ed853bb0ac5042ae5842 /lib/Target/X86/X86InstrInfo.cpp | |
| parent | b3b930a011554fc7566dd4311af3862b01e5fd8f (diff) | |
Add more const qualifiers. This fixes build breakage from r59540.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59542 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86InstrInfo.cpp')
| -rw-r--r-- | lib/Target/X86/X86InstrInfo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/X86/X86InstrInfo.cpp b/lib/Target/X86/X86InstrInfo.cpp index c08fdd8f20..fb7793fdcb 100644 --- a/lib/Target/X86/X86InstrInfo.cpp +++ b/lib/Target/X86/X86InstrInfo.cpp @@ -688,7 +688,7 @@ bool X86InstrInfo::isMoveInstr(const MachineInstr& MI, } } -unsigned X86InstrInfo::isLoadFromStackSlot(MachineInstr *MI, +unsigned X86InstrInfo::isLoadFromStackSlot(const MachineInstr *MI, int &FrameIndex) const { switch (MI->getOpcode()) { default: break; @@ -718,7 +718,7 @@ unsigned X86InstrInfo::isLoadFromStackSlot(MachineInstr *MI, return 0; } -unsigned X86InstrInfo::isStoreToStackSlot(MachineInstr *MI, +unsigned X86InstrInfo::isStoreToStackSlot(const MachineInstr *MI, int &FrameIndex) const { switch (MI->getOpcode()) { default: break; @@ -936,7 +936,7 @@ void X86InstrInfo::reMaterialize(MachineBasicBlock &MBB, /// from the argument area of a function if it does not change. This should /// only return true of *all* loads the instruction does are invariant (if it /// does multiple loads). -bool X86InstrInfo::isInvariantLoad(MachineInstr *MI) const { +bool X86InstrInfo::isInvariantLoad(const MachineInstr *MI) const { // This code cares about loads from three cases: constant pool entries, // invariant argument slots, and global stubs. In order to handle these cases // for all of the myriad of X86 instructions, we just scan for a CP/FI/GV |
