diff options
author | Bill Wendling <isanbard@gmail.com> | 2010-05-25 22:02:22 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2010-05-25 22:02:22 +0000 |
commit | f10bc81b4e84003f8842e8ee7eee9d626de77e5f (patch) | |
tree | 0ab44d7cd2dc0a751cc88b956490baec3eb024dd | |
parent | eddc114a66b4520369e0f86ab1d3132dac2449b2 (diff) | |
download | external_llvm-f10bc81b4e84003f8842e8ee7eee9d626de77e5f.zip external_llvm-f10bc81b4e84003f8842e8ee7eee9d626de77e5f.tar.gz external_llvm-f10bc81b4e84003f8842e8ee7eee9d626de77e5f.tar.bz2 |
Constify function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104646 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/StackSlotColoring.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/StackSlotColoring.cpp b/lib/CodeGen/StackSlotColoring.cpp index fc941df..8043556 100644 --- a/lib/CodeGen/StackSlotColoring.cpp +++ b/lib/CodeGen/StackSlotColoring.cpp @@ -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"); |