diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-26 23:15:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-26 23:15:09 +0000 |
commit | f13e5f73236c92d5f273ef98714b44a1c0d4a1af (patch) | |
tree | 5d67d0dcaf34f9fb6873c7da509463b815b0776f /llvm/lib/Target/SystemZ/SystemZRegisterInfo.cpp | |
parent | c35b5a123bd1395fc5af4ecb1359e9042a45ff21 (diff) | |
download | bcm5719-llvm-f13e5f73236c92d5f273ef98714b44a1c0d4a1af.tar.gz bcm5719-llvm-f13e5f73236c92d5f273ef98714b44a1c0d4a1af.zip |
constify a method argument.
llvm-svn: 94612
Diffstat (limited to 'llvm/lib/Target/SystemZ/SystemZRegisterInfo.cpp')
-rw-r--r-- | llvm/lib/Target/SystemZ/SystemZRegisterInfo.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZRegisterInfo.cpp b/llvm/lib/Target/SystemZ/SystemZRegisterInfo.cpp index 1318195ad00..fe50c90f6e5 100644 --- a/llvm/lib/Target/SystemZ/SystemZRegisterInfo.cpp +++ b/llvm/lib/Target/SystemZ/SystemZRegisterInfo.cpp @@ -86,10 +86,11 @@ eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB, MBB.erase(I); } -int SystemZRegisterInfo::getFrameIndexOffset(MachineFunction &MF, int FI) const { +int SystemZRegisterInfo::getFrameIndexOffset(const MachineFunction &MF, + int FI) const { const TargetFrameInfo &TFI = *MF.getTarget().getFrameInfo(); - MachineFrameInfo *MFI = MF.getFrameInfo(); - SystemZMachineFunctionInfo *SystemZMFI = + const MachineFrameInfo *MFI = MF.getFrameInfo(); + const SystemZMachineFunctionInfo *SystemZMFI = MF.getInfo<SystemZMachineFunctionInfo>(); int Offset = MFI->getObjectOffset(FI) + MFI->getOffsetAdjustment(); uint64_t StackSize = MFI->getStackSize(); |