diff options
author | Eric Christopher <echristo@apple.com> | 2010-07-20 06:52:21 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-07-20 06:52:21 +0000 |
commit | c045005458f070655bc119d0a1f26bac7efc8b04 (patch) | |
tree | 8b5e5b548e73faf5a751d824669390242f01405e /lib/Target/MSP430 | |
parent | 3a798fa6251a04fdccbd8164679dcf0c49ff313b (diff) | |
download | external_llvm-c045005458f070655bc119d0a1f26bac7efc8b04.zip external_llvm-c045005458f070655bc119d0a1f26bac7efc8b04.tar.gz external_llvm-c045005458f070655bc119d0a1f26bac7efc8b04.tar.bz2 |
Constify some arguments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108812 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MSP430')
-rw-r--r-- | lib/Target/MSP430/MSP430RegisterInfo.cpp | 2 | ||||
-rw-r--r-- | lib/Target/MSP430/MSP430RegisterInfo.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/MSP430/MSP430RegisterInfo.cpp b/lib/Target/MSP430/MSP430RegisterInfo.cpp index 608ca49..3a4c7ed 100644 --- a/lib/Target/MSP430/MSP430RegisterInfo.cpp +++ b/lib/Target/MSP430/MSP430RegisterInfo.cpp @@ -101,7 +101,7 @@ bool MSP430RegisterInfo::hasFP(const MachineFunction &MF) const { MFI->isFrameAddressTaken()); } -bool MSP430RegisterInfo::hasReservedCallFrame(MachineFunction &MF) const { +bool MSP430RegisterInfo::hasReservedCallFrame(const MachineFunction &MF) const { return !MF.getFrameInfo()->hasVarSizedObjects(); } diff --git a/lib/Target/MSP430/MSP430RegisterInfo.h b/lib/Target/MSP430/MSP430RegisterInfo.h index 6e58d31..d68fe1f 100644 --- a/lib/Target/MSP430/MSP430RegisterInfo.h +++ b/lib/Target/MSP430/MSP430RegisterInfo.h @@ -40,7 +40,7 @@ public: const TargetRegisterClass* getPointerRegClass(unsigned Kind = 0) const; bool hasFP(const MachineFunction &MF) const; - bool hasReservedCallFrame(MachineFunction &MF) const; + bool hasReservedCallFrame(const MachineFunction &MF) const; void eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB, |