diff options
author | Chris Lattner <sabre@nondot.org> | 2006-08-17 22:00:08 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-08-17 22:00:08 +0000 |
commit | 5ea64fd9eb0027ad20a66ea29211eef79d8842a0 (patch) | |
tree | cf7e23de8d8fbe6719bf9f2371aacbda97de7827 /lib/Target/Alpha/AlphaRegisterInfo.cpp | |
parent | c0431fe1ca52c5d159c604957f337aa3eb1ec3d3 (diff) |
Constify some methods. Patch provided by Anton Vayvod, thanks!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29756 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaRegisterInfo.cpp')
-rw-r--r-- | lib/Target/Alpha/AlphaRegisterInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/Alpha/AlphaRegisterInfo.cpp b/lib/Target/Alpha/AlphaRegisterInfo.cpp index 9ea4b70893..772840a3eb 100644 --- a/lib/Target/Alpha/AlphaRegisterInfo.cpp +++ b/lib/Target/Alpha/AlphaRegisterInfo.cpp @@ -180,7 +180,7 @@ AlphaRegisterInfo::getCalleeSaveRegClasses() const { // pointer register. This is true if the function has variable sized allocas or // if frame pointer elimination is disabled. // -static bool hasFP(MachineFunction &MF) { +static bool hasFP(const MachineFunction &MF) { MachineFrameInfo *MFI = MF.getFrameInfo(); return MFI->hasVarSizedObjects(); } |