summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc/StackSlots.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-01-14 22:00:31 +0000
committerChris Lattner <sabre@nondot.org>2003-01-14 22:00:31 +0000
commitb4d58d7f9ed26526947a2b34071abed0cbe8f9f3 (patch)
treebd93588e4e71879c71e5d8e0586ba4a6331c9166 /llvm/lib/Target/Sparc/StackSlots.cpp
parent73a8c81c4061691bf937c4f02cd186cfd9f73e27 (diff)
downloadbcm5719-llvm-b4d58d7f9ed26526947a2b34071abed0cbe8f9f3.tar.gz
bcm5719-llvm-b4d58d7f9ed26526947a2b34071abed0cbe8f9f3.zip
Rename MachineInstrInfo -> TargetInstrInfo
llvm-svn: 5272
Diffstat (limited to 'llvm/lib/Target/Sparc/StackSlots.cpp')
-rw-r--r--llvm/lib/Target/Sparc/StackSlots.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/llvm/lib/Target/Sparc/StackSlots.cpp b/llvm/lib/Target/Sparc/StackSlots.cpp
index 8f3a507b25e..1ff54b9c12c 100644
--- a/llvm/lib/Target/Sparc/StackSlots.cpp
+++ b/llvm/lib/Target/Sparc/StackSlots.cpp
@@ -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 @@ namespace {
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;
}
};
OpenPOWER on IntegriCloud