Constify the function parameters.
authorBill Wendling <isanbard@gmail.com>
Thu, 15 Aug 2013 18:46:14 +0000 (18:46 +0000)
committerBill Wendling <isanbard@gmail.com>
Thu, 15 Aug 2013 18:46:14 +0000 (18:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188469 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86FrameLowering.cpp

index b994e678a8a68b2ad9647f6f5bb36d963f1a7191..ecf7b73d68d4ce845b21f30904112b2f373e2767 100644 (file)
@@ -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)