Minor interface change.
authorEvan Cheng <evan.cheng@apple.com>
Tue, 6 Mar 2007 10:05:14 +0000 (10:05 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 6 Mar 2007 10:05:14 +0000 (10:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34967 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/MRegisterInfo.h
lib/Target/PowerPC/PPCRegisterInfo.cpp
lib/Target/PowerPC/PPCRegisterInfo.h

index 8dbb13628cacfc07cedbec5d5606d52c98f5b55b..8c74c3235a65b926a04bb9b918b4553a77e51be2 100644 (file)
@@ -433,7 +433,9 @@ public:
   /// processFunctionBeforeCalleeSavedScan - This method is called immediately
   /// before PrologEpilogInserter scans the physical registers used to determine
   /// what callee saved registers should be spilled. This method is optional.
-  virtual void processFunctionBeforeCalleeSavedScan(MachineFunction &MF) const {
+  virtual void processFunctionBeforeCalleeSavedScan(MachineFunction &MF,
+                                                RegScavenger *RS = NULL) const {
+
   }
 
   /// processFunctionBeforeFrameFinalized - This method is called immediately
index 19ba9bc9150d9015e84a8de0d2cf69266678ae45..1029babe99e86a06de6ec43174bef5a22023ce87 100644 (file)
@@ -874,7 +874,8 @@ void PPCRegisterInfo::determineFrameLayout(MachineFunction &MF) const {
   MFI->setStackSize(FrameSize);
 }
 
-void PPCRegisterInfo::processFunctionBeforeCalleeSavedScan(MachineFunction &MF)
+void PPCRegisterInfo::processFunctionBeforeCalleeSavedScan(MachineFunction &MF,
+                                                           RegScavenger *RS)
   const {
   //  Save and clear the LR state.
   PPCFunctionInfo *FI = MF.getInfo<PPCFunctionInfo>();
index 3a46dcd01370e90d063a57e92d5de6fac967a040..e23ab336f05fe576bf2c3703e153ea11b1d846d9 100644 (file)
@@ -83,7 +83,8 @@ public:
   /// frame size.
   void determineFrameLayout(MachineFunction &MF) const;
 
-  void processFunctionBeforeCalleeSavedScan(MachineFunction &MF) const;
+  void processFunctionBeforeCalleeSavedScan(MachineFunction &MF,
+                                            RegScavenger *RS = NULL) const;
   void emitPrologue(MachineFunction &MF) const;
   void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const;