[llvm-commits] [llvm] r104646 - /llvm/trunk/lib/CodeGen/StackSlotColoring.cpp
Bill Wendling
isanbard at gmail.com
Tue May 25 15:02:22 PDT 2010
Author: void
Date: Tue May 25 17:02:22 2010
New Revision: 104646
URL: http://llvm.org/viewvc/llvm-project?rev=104646&view=rev
Log:
Constify function.
Modified:
llvm/trunk/lib/CodeGen/StackSlotColoring.cpp
Modified: llvm/trunk/lib/CodeGen/StackSlotColoring.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/StackSlotColoring.cpp?rev=104646&r1=104645&r2=104646&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/StackSlotColoring.cpp (original)
+++ llvm/trunk/lib/CodeGen/StackSlotColoring.cpp Tue May 25 17:02:22 2010
@@ -118,7 +118,7 @@
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 @@
/// 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");
More information about the llvm-commits
mailing list