summaryrefslogtreecommitdiff
path: root/lib/Target/Sparc
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2009-11-12 21:00:03 +0000
committerDavid Greene <greened@obbligato.org>2009-11-12 21:00:03 +0000
commitb9c2fd964ee7dd7823ac71db8443055e4d0f1c15 (patch)
tree5cba73ecc3640f0bdb362c1654a04323ae165aef /lib/Target/Sparc
parentb87bc95db075dae3033a3c541b55b4cb711c332c (diff)
downloadllvm-b9c2fd964ee7dd7823ac71db8443055e4d0f1c15.tar.gz
llvm-b9c2fd964ee7dd7823ac71db8443055e4d0f1c15.tar.bz2
llvm-b9c2fd964ee7dd7823ac71db8443055e4d0f1c15.tar.xz
Make the MachineFunction argument of getFrameRegister const.
This also fixes a build error. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@87027 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc')
-rw-r--r--lib/Target/Sparc/SparcRegisterInfo.cpp2
-rw-r--r--lib/Target/Sparc/SparcRegisterInfo.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/Sparc/SparcRegisterInfo.cpp b/lib/Target/Sparc/SparcRegisterInfo.cpp
index 7883260e14..6f6183ec34 100644
--- a/lib/Target/Sparc/SparcRegisterInfo.cpp
+++ b/lib/Target/Sparc/SparcRegisterInfo.cpp
@@ -175,7 +175,7 @@ unsigned SparcRegisterInfo::getRARegister() const {
return SP::I7;
}
-unsigned SparcRegisterInfo::getFrameRegister(MachineFunction &MF) const {
+unsigned SparcRegisterInfo::getFrameRegister(const MachineFunction &MF) const {
return SP::I6;
}
diff --git a/lib/Target/Sparc/SparcRegisterInfo.h b/lib/Target/Sparc/SparcRegisterInfo.h
index 753b1c0492..8889ea6688 100644
--- a/lib/Target/Sparc/SparcRegisterInfo.h
+++ b/lib/Target/Sparc/SparcRegisterInfo.h
@@ -54,7 +54,7 @@ struct SparcRegisterInfo : public SparcGenRegisterInfo {
// Debug information queries.
unsigned getRARegister() const;
- unsigned getFrameRegister(MachineFunction &MF) const;
+ unsigned getFrameRegister(const MachineFunction &MF) const;
// Exception handling queries.
unsigned getEHExceptionRegister() const;