[llvm-commits] CVS: llvm/lib/CodeGen/Mapping/StackSlots.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Jan 14 15:59:04 PST 2003
Changes in directory llvm/lib/CodeGen/Mapping:
StackSlots.cpp updated: 1.4 -> 1.5
---
Log message:
Rename MachineInstrInfo -> TargetInstrInfo
---
Diffs of the changes:
Index: llvm/lib/CodeGen/Mapping/StackSlots.cpp
diff -u llvm/lib/CodeGen/Mapping/StackSlots.cpp:1.4 llvm/lib/CodeGen/Mapping/StackSlots.cpp:1.5
--- llvm/lib/CodeGen/Mapping/StackSlots.cpp:1.4 Sat Dec 28 14:42:56 2002
+++ llvm/lib/CodeGen/Mapping/StackSlots.cpp Tue Jan 14 15:58:45 2003
@@ -8,16 +8,14 @@
#include "llvm/CodeGen/StackSlots.h"
#include "llvm/Target/TargetMachine.h"
-#include "llvm/Target/MachineInstrInfo.h"
#include "llvm/Constant.h"
#include "llvm/Function.h"
#include "llvm/DerivedTypes.h"
-#include "llvm/Pass.h"
-#include "llvm/CodeGen/MachineFunction.h"
+#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineFunctionInfo.h"
namespace {
- class StackSlots : public FunctionPass {
+ class StackSlots : public MachineFunctionPass {
const TargetMachine &Target;
public:
StackSlots(const TargetMachine &T) : Target(T) {}
@@ -30,12 +28,12 @@
AU.setPreservesCFG();
}
- bool runOnFunction(Function &F) {
+ bool runOnMachineFunction(MachineFunction &MF) {
const Type *PtrInt = PointerType::get(Type::IntTy);
unsigned Size = Target.getTargetData().getTypeSize(PtrInt);
Value *V = Constant::getNullValue(Type::IntTy);
- MachineFunction::get(&F).getInfo()->allocateLocalVar(V, 2*Size);
+ MF.getInfo()->allocateLocalVar(V, 2*Size);
return true;
}
};
More information about the llvm-commits
mailing list