Constify function.

llvm-svn: 104646
This commit is contained in:
Bill Wendling 2010-05-25 22:02:22 +00:00
parent ce3269b815
commit 388f638511
1 changed files with 2 additions and 2 deletions

View File

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