Constify function.
authorBill Wendling <isanbard@gmail.com>
Tue, 25 May 2010 22:02:22 +0000 (22:02 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 25 May 2010 22:02:22 +0000 (22:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104646 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/StackSlotColoring.cpp

index fc941df8d9ee674265b8e4724d76134ff0dd2905..8043556349808b18b78c801d88d1488b6548f3db 100644 (file)
@@ -118,7 +118,7 @@ namespace {
 
   private:
     void InitializeSlots();
-    bool CheckForSetJmpCall(const MachineFunction &MF);
+    bool CheckForSetJmpCall(const MachineFunction &MF) const;
     void ScanForSpillSlotRefs(MachineFunction &MF);
     bool OverlapWithAssignments(LiveInterval *li, int Color) const;
     int ColorSlot(LiveInterval *li);
@@ -164,7 +164,7 @@ namespace {
 
 /// CheckForSetJmpCall - Return true if there's a call to setjmp/sigsetjmp in
 /// this function.
-bool StackSlotColoring::CheckForSetJmpCall(const MachineFunction &MF) {
+bool StackSlotColoring::CheckForSetJmpCall(const MachineFunction &MF) const {
   const Function *F = MF.getFunction();
   const Module *M = F->getParent();
   const Function *SetJmp = M->getFunction("setjmp");