From 47a8810964efde4d8f09ae646a067f9a7423f6e8 Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Wed, 10 Jul 2002 21:30:17 +0000 Subject: [PATCH] Put caller-saving code *before* argument copying code! (This file has a minor change required for this fix.) llvm-svn: 2854 --- include/llvm/Target/TargetRegInfo.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/llvm/Target/TargetRegInfo.h b/include/llvm/Target/TargetRegInfo.h index 75500b58cfe..33bcf15e58f 100644 --- a/include/llvm/Target/TargetRegInfo.h +++ b/include/llvm/Target/TargetRegInfo.h @@ -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& instrnsBefore, + vector& instrnsAfter, + MachineInstr *MInst, const BasicBlock *BB, PhyRegAlloc &PRA) const = 0;