summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-08-17 22:00:08 +0000
committerChris Lattner <sabre@nondot.org>2006-08-17 22:00:08 +0000
commit60f1eecd3a542be630d1fcdd2c792945dfb6587d (patch)
tree4eaa3e1ef8c06f1f37a58c6acf3ea24e3784e5bc /llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp
parent56588abbf87a063df92f94104f6d8e736092baab (diff)
downloadbcm5719-llvm-60f1eecd3a542be630d1fcdd2c792945dfb6587d.tar.gz
bcm5719-llvm-60f1eecd3a542be630d1fcdd2c792945dfb6587d.zip
Constify some methods. Patch provided by Anton Vayvod, thanks!
llvm-svn: 29756
Diffstat (limited to 'llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp')
-rw-r--r--llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp b/llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp
index 9ea4b70893e..772840a3eb6 100644
--- a/llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp
+++ b/llvm/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();
}
OpenPOWER on IntegriCloud