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);
/// 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");