aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-08-15 18:46:14 +0000
committerBill Wendling <isanbard@gmail.com>2013-08-15 18:46:14 +0000
commite4272979978951bece0141cdd9f6a4481b34656f (patch)
tree8a14fbc8200db068faeeb5ad4350ba5cac9f78ae /lib/Target/X86
parenta370bdb42eaefdb103f971ad2e84c75573d77c68 (diff)
downloadexternal_llvm-e4272979978951bece0141cdd9f6a4481b34656f.zip
external_llvm-e4272979978951bece0141cdd9f6a4481b34656f.tar.gz
external_llvm-e4272979978951bece0141cdd9f6a4481b34656f.tar.bz2
Constify the function parameters.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188469 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86')
-rw-r--r--lib/Target/X86/X86FrameLowering.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/X86/X86FrameLowering.cpp b/lib/Target/X86/X86FrameLowering.cpp
index b994e67..ecf7b73 100644
--- a/lib/Target/X86/X86FrameLowering.cpp
+++ b/lib/Target/X86/X86FrameLowering.cpp
@@ -627,8 +627,8 @@ uint32_t X86FrameLowering::getCompactUnwindEncoding(MachineFunction &MF) const {
/// to use the stack, and if we don't adjust the stack we clobber the first
/// frame index.
/// See X86InstrInfo::copyPhysReg.
-static bool usesTheStack(MachineFunction &MF) {
- MachineRegisterInfo &MRI = MF.getRegInfo();
+static bool usesTheStack(const MachineFunction &MF) {
+ const MachineRegisterInfo &MRI = MF.getRegInfo();
for (MachineRegisterInfo::reg_iterator ri = MRI.reg_begin(X86::EFLAGS),
re = MRI.reg_end(); ri != re; ++ri)