summaryrefslogtreecommitdiff
path: root/lib/Target/XCore/XCoreRegisterInfo.h
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/XCore/XCoreRegisterInfo.h
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/XCore/XCoreRegisterInfo.h')
-rw-r--r--lib/Target/XCore/XCoreRegisterInfo.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/XCore/XCoreRegisterInfo.h b/lib/Target/XCore/XCoreRegisterInfo.h
index a7df5102f2..8ab175065d 100644
--- a/lib/Target/XCore/XCoreRegisterInfo.h
+++ b/lib/Target/XCore/XCoreRegisterInfo.h
@@ -60,7 +60,7 @@ public:
unsigned eliminateFrameIndex(MachineBasicBlock::iterator II,
int SPAdj, int *Value = NULL,
RegScavenger *RS = NULL) const;
-
+
void processFunctionBeforeCalleeSavedScan(MachineFunction &MF,
RegScavenger *RS = NULL) const;
@@ -71,7 +71,7 @@ public:
// Debug information queries.
unsigned getRARegister() const;
- unsigned getFrameRegister(MachineFunction &MF) const;
+ unsigned getFrameRegister(const MachineFunction &MF) const;
void getInitialFrameState(std::vector<MachineMove> &Moves) const;
//! Return the array of argument passing registers