Put caller-saving code *before* argument copying code!
authorVikram S. Adve <vadve@cs.uiuc.edu>
Wed, 10 Jul 2002 21:30:17 +0000 (21:30 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Wed, 10 Jul 2002 21:30:17 +0000 (21:30 +0000)
(This file has a minor change required for this fix.)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2854 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetRegInfo.h

index 75500b58cfe602f0de0b422d8bc4e1191827b816..33bcf15e58f123fd2db008b66b052efbbcc190d5 100644 (file)
@@ -220,7 +220,9 @@ public:
   // an architecture. This must insert code for saving and restoring 
   // such registers on
   //
-  virtual void insertCallerSavingCode(MachineInstr *MInst, 
+  virtual void insertCallerSavingCode(vector<MachineInstr*>& instrnsBefore,
+                                      vector<MachineInstr*>& instrnsAfter,
+                                      MachineInstr *MInst, 
                                      const BasicBlock *BB, 
                                      PhyRegAlloc &PRA) const = 0;