Changes in directory llvm/lib/Target/PowerPC:

PPCRegisterInfo.cpp updated: 1.95 -> 1.96
PPCRegisterInfo.h updated: 1.21 -> 1.22
---
Log message:

hasFP() is now a virtual method of MRegisterInfo.

---
Diffs of the changes:  (+3 -1)

 PPCRegisterInfo.cpp |    2 +-
 PPCRegisterInfo.h   |    2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)


Index: llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp
diff -u llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp:1.95 
llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp:1.96
--- llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp:1.95    Tue Jan  2 15:33:01 2007
+++ llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp Mon Jan 22 18:55:21 2007
@@ -410,7 +410,7 @@
 // hasFP - Return true if the specified function actually has a dedicated frame
 // pointer register.  This is true if the function needs a frame pointer and 
has
 // a non-zero stack size.
-static bool hasFP(const MachineFunction &MF) {
+bool PPCRegisterInfo::hasFP(const MachineFunction &MF) const {
   const MachineFrameInfo *MFI = MF.getFrameInfo();
   return MFI->getStackSize() && needsFP(MF);
 }


Index: llvm/lib/Target/PowerPC/PPCRegisterInfo.h
diff -u llvm/lib/Target/PowerPC/PPCRegisterInfo.h:1.21 
llvm/lib/Target/PowerPC/PPCRegisterInfo.h:1.22
--- llvm/lib/Target/PowerPC/PPCRegisterInfo.h:1.21      Tue Jan  2 15:33:01 2007
+++ llvm/lib/Target/PowerPC/PPCRegisterInfo.h   Mon Jan 22 18:55:21 2007
@@ -58,6 +58,8 @@
 
   const TargetRegisterClass* const* getCalleeSavedRegClasses() const;
 
+  bool hasFP(const MachineFunction &MF) const;
+
   void eliminateCallFramePseudoInstr(MachineFunction &MF,
                                      MachineBasicBlock &MBB,
                                      MachineBasicBlock::iterator I) const;



_______________________________________________
llvm-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to