From 33332bce173c6eb9c8cdbbabb274836aaea3c3da Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 16 Oct 2008 01:49:15 +0000 Subject: Const-ify several TargetInstrInfo methods. llvm-svn: 57622 --- llvm/lib/Target/Sparc/SparcInstrInfo.cpp | 2 +- llvm/lib/Target/Sparc/SparcInstrInfo.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/lib/Target/Sparc') diff --git a/llvm/lib/Target/Sparc/SparcInstrInfo.cpp b/llvm/lib/Target/Sparc/SparcInstrInfo.cpp index 0d7370b9bb5..47c0672cedb 100644 --- a/llvm/lib/Target/Sparc/SparcInstrInfo.cpp +++ b/llvm/lib/Target/Sparc/SparcInstrInfo.cpp @@ -227,7 +227,7 @@ void SparcInstrInfo::loadRegFromAddr(MachineFunction &MF, unsigned DestReg, MachineInstr *SparcInstrInfo::foldMemoryOperand(MachineFunction &MF, MachineInstr* MI, - SmallVectorImpl &Ops, + const SmallVectorImpl &Ops, int FI) const { if (Ops.size() != 1) return NULL; diff --git a/llvm/lib/Target/Sparc/SparcInstrInfo.h b/llvm/lib/Target/Sparc/SparcInstrInfo.h index aadbefd9db0..7c633169adb 100644 --- a/llvm/lib/Target/Sparc/SparcInstrInfo.h +++ b/llvm/lib/Target/Sparc/SparcInstrInfo.h @@ -96,12 +96,12 @@ public: virtual MachineInstr* foldMemoryOperand(MachineFunction &MF, MachineInstr* MI, - SmallVectorImpl &Ops, + const SmallVectorImpl &Ops, int FrameIndex) const; virtual MachineInstr* foldMemoryOperand(MachineFunction &MF, MachineInstr* MI, - SmallVectorImpl &Ops, + const SmallVectorImpl &Ops, MachineInstr* LoadMI) const { return 0; } -- cgit v1.2.3