[llvm] r188469 - Constify the function parameters.

Bill Wendling isanbard at gmail.com
Thu Aug 15 11:46:14 PDT 2013


Author: void
Date: Thu Aug 15 13:46:14 2013
New Revision: 188469

URL: http://llvm.org/viewvc/llvm-project?rev=188469&view=rev
Log:
Constify the function parameters.

Modified:
    llvm/trunk/lib/Target/X86/X86FrameLowering.cpp

Modified: llvm/trunk/lib/Target/X86/X86FrameLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86FrameLowering.cpp?rev=188469&r1=188468&r2=188469&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86FrameLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86FrameLowering.cpp Thu Aug 15 13:46:14 2013
@@ -627,8 +627,8 @@ uint32_t X86FrameLowering::getCompactUnw
 /// 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)





More information about the llvm-commits mailing list