Changes in directory llvm/lib/Target/Alpha:
AlphaRegisterInfo.cpp updated: 1.46 -> 1.47 AlphaRegisterInfo.td updated: 1.16 -> 1.17 --- Log message: Constify some methods. Patch provided by Anton Vayvod, thanks! --- Diffs of the changes: (+7 -7) AlphaRegisterInfo.cpp | 2 +- AlphaRegisterInfo.td | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) Index: llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp diff -u llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp:1.46 llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp:1.47 --- llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp:1.46 Mon Jun 12 13:09:24 2006 +++ llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp Thu Aug 17 17:00:07 2006 @@ -180,7 +180,7 @@ // pointer register. This is true if the function has variable sized allocas or // if frame pointer elimination is disabled. // -static bool hasFP(MachineFunction &MF) { +static bool hasFP(const MachineFunction &MF) { MachineFrameInfo *MFI = MF.getFrameInfo(); return MFI->hasVarSizedObjects(); } Index: llvm/lib/Target/Alpha/AlphaRegisterInfo.td diff -u llvm/lib/Target/Alpha/AlphaRegisterInfo.td:1.16 llvm/lib/Target/Alpha/AlphaRegisterInfo.td:1.17 --- llvm/lib/Target/Alpha/AlphaRegisterInfo.td:1.16 Fri Mar 24 15:15:57 2006 +++ llvm/lib/Target/Alpha/AlphaRegisterInfo.td Thu Aug 17 17:00:07 2006 @@ -124,11 +124,11 @@ R15, R30, R31 ]> //zero { let MethodProtos = [{ - iterator allocation_order_end(MachineFunction &MF) const; + iterator allocation_order_end(const MachineFunction &MF) const; }]; let MethodBodies = [{ GPRCClass::iterator - GPRCClass::allocation_order_end(MachineFunction &MF) const { + GPRCClass::allocation_order_end(const MachineFunction &MF) const { return end()-3; } }]; @@ -142,11 +142,11 @@ F31 ]> //zero { let MethodProtos = [{ - iterator allocation_order_end(MachineFunction &MF) const; + iterator allocation_order_end(const MachineFunction &MF) const; }]; let MethodBodies = [{ F4RCClass::iterator - F4RCClass::allocation_order_end(MachineFunction &MF) const { + F4RCClass::allocation_order_end(const MachineFunction &MF) const { return end()-1; } }]; @@ -160,11 +160,11 @@ F31 ]> //zero { let MethodProtos = [{ - iterator allocation_order_end(MachineFunction &MF) const; + iterator allocation_order_end(const MachineFunction &MF) const; }]; let MethodBodies = [{ F8RCClass::iterator - F8RCClass::allocation_order_end(MachineFunction &MF) const { + F8RCClass::allocation_order_end(const MachineFunction &MF) const { return end()-1; } }]; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits