[llvm-commits] CVS: llvm/lib/CodeGen/RegisterScavenging.cpp
Evan Cheng
evan.cheng at apple.com
Tue Feb 27 14:11:09 PST 2007
Changes in directory llvm/lib/CodeGen:
RegisterScavenging.cpp updated: 1.5 -> 1.6
---
Log message:
Oops.
---
Diffs of the changes: (+4 -1)
RegisterScavenging.cpp | 5 ++++-
1 files changed, 4 insertions(+), 1 deletion(-)
Index: llvm/lib/CodeGen/RegisterScavenging.cpp
diff -u llvm/lib/CodeGen/RegisterScavenging.cpp:1.5 llvm/lib/CodeGen/RegisterScavenging.cpp:1.6
--- llvm/lib/CodeGen/RegisterScavenging.cpp:1.5 Tue Feb 27 15:09:48 2007
+++ llvm/lib/CodeGen/RegisterScavenging.cpp Tue Feb 27 16:10:52 2007
@@ -25,7 +25,10 @@
#include "llvm/ADT/STLExtras.h"
using namespace llvm;
-void RegScavenger::init() {
+void RegScavenger::init(MachineBasicBlock *mbb) {
+ if (mbb)
+ MBB = mbb;
+
const MachineFunction &MF = *MBB->getParent();
const TargetMachine &TM = MF.getTarget();
const MRegisterInfo *RegInfo = TM.getRegisterInfo();
More information about the llvm-commits
mailing list