diff options
author | Chris Lattner <sabre@nondot.org> | 2003-01-14 22:00:31 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-01-14 22:00:31 +0000 |
commit | 3501feab811c86c9659248a4875fc31a3165f84d (patch) | |
tree | 2ca1cf55d75265580653ceb51afea9d56e2c235d /lib/Target/SparcV9/SparcV9StackSlots.cpp | |
parent | d640a6b4cfc563da92d47900169d848b08f27139 (diff) | |
download | external_llvm-3501feab811c86c9659248a4875fc31a3165f84d.zip external_llvm-3501feab811c86c9659248a4875fc31a3165f84d.tar.gz external_llvm-3501feab811c86c9659248a4875fc31a3165f84d.tar.bz2 |
Rename MachineInstrInfo -> TargetInstrInfo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5272 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9/SparcV9StackSlots.cpp')
-rw-r--r-- | lib/Target/SparcV9/SparcV9StackSlots.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/Target/SparcV9/SparcV9StackSlots.cpp b/lib/Target/SparcV9/SparcV9StackSlots.cpp index 8f3a507..1ff54b9 100644 --- a/lib/Target/SparcV9/SparcV9StackSlots.cpp +++ b/lib/Target/SparcV9/SparcV9StackSlots.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; } }; |