mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
Changed MachineCodeForMethod' to
MachineFunction'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4301 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
#include "llvm/Function.h"
|
||||
#include "llvm/DerivedTypes.h"
|
||||
#include "llvm/Pass.h"
|
||||
#include "llvm/CodeGen/MachineCodeForMethod.h"
|
||||
#include "llvm/CodeGen/MachineFunction.h"
|
||||
|
||||
class StackSlots : public FunctionPass {
|
||||
const TargetMachine &Target;
|
||||
@@ -32,7 +32,7 @@ public:
|
||||
const Type *PtrInt = PointerType::get(Type::IntTy);
|
||||
unsigned Size = Target.DataLayout.getTypeSize(PtrInt);
|
||||
|
||||
MachineCodeForMethod &mcInfo = MachineCodeForMethod::get(&F);
|
||||
MachineFunction &mcInfo = MachineFunction::get(&F);
|
||||
Value *V = Constant::getNullValue(Type::IntTy);
|
||||
mcInfo.allocateLocalVar(Target, V, 2*Size);
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user