summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/CellSPU
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-10-16 01:49:15 +0000
committerDan Gohman <gohman@apple.com>2008-10-16 01:49:15 +0000
commit33332bce173c6eb9c8cdbbabb274836aaea3c3da (patch)
treef7974686d4dff75c9e3c7b66c1a0a98a6936650f /llvm/lib/Target/CellSPU
parent4a8766012792ba19a54d02fe22dd28b554885c06 (diff)
downloadbcm5719-llvm-33332bce173c6eb9c8cdbbabb274836aaea3c3da.tar.gz
bcm5719-llvm-33332bce173c6eb9c8cdbbabb274836aaea3c3da.zip
Const-ify several TargetInstrInfo methods.
llvm-svn: 57622
Diffstat (limited to 'llvm/lib/Target/CellSPU')
-rw-r--r--llvm/lib/Target/CellSPU/SPUInstrInfo.cpp2
-rw-r--r--llvm/lib/Target/CellSPU/SPUInstrInfo.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/CellSPU/SPUInstrInfo.cpp b/llvm/lib/Target/CellSPU/SPUInstrInfo.cpp
index cc562eba76c..29facb95cf0 100644
--- a/llvm/lib/Target/CellSPU/SPUInstrInfo.cpp
+++ b/llvm/lib/Target/CellSPU/SPUInstrInfo.cpp
@@ -399,7 +399,7 @@ void SPUInstrInfo::loadRegFromAddr(MachineFunction &MF, unsigned DestReg,
MachineInstr *
SPUInstrInfo::foldMemoryOperand(MachineFunction &MF,
MachineInstr *MI,
- SmallVectorImpl<unsigned> &Ops,
+ const SmallVectorImpl<unsigned> &Ops,
int FrameIndex) const
{
#if SOMEDAY_SCOTT_LOOKS_AT_ME_AGAIN
diff --git a/llvm/lib/Target/CellSPU/SPUInstrInfo.h b/llvm/lib/Target/CellSPU/SPUInstrInfo.h
index 5f3aaaadf5d..9c8bcaf7f7b 100644
--- a/llvm/lib/Target/CellSPU/SPUInstrInfo.h
+++ b/llvm/lib/Target/CellSPU/SPUInstrInfo.h
@@ -79,13 +79,13 @@ namespace llvm {
//! Fold spills into load/store instructions
virtual MachineInstr* foldMemoryOperand(MachineFunction &MF,
MachineInstr* MI,
- SmallVectorImpl<unsigned> &Ops,
+ const SmallVectorImpl<unsigned> &Ops,
int FrameIndex) const;
//! Fold any load/store to an operand
virtual MachineInstr* foldMemoryOperand(MachineFunction &MF,
MachineInstr* MI,
- SmallVectorImpl<unsigned> &Ops,
+ const SmallVectorImpl<unsigned> &Ops,
MachineInstr* LoadMI) const {
return 0;
}
OpenPOWER on IntegriCloud