diff options
Diffstat (limited to 'llvm/lib/CodeGen/RegAlloc')
| -rw-r--r-- | llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp | 6 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp index 5fc6a4d5c00..9899dbc71cc 100644 --- a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp +++ b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp @@ -10,7 +10,7 @@ #include "llvm/CodeGen/MachineInstr.h" #include "llvm/CodeGen/MachineInstrAnnot.h" #include "llvm/CodeGen/MachineCodeForBasicBlock.h" -#include "llvm/CodeGen/MachineCodeForMethod.h" +#include "llvm/CodeGen/MachineFunction.h" #include "llvm/Analysis/LiveVar/FunctionLiveVarInfo.h" #include "llvm/Analysis/LoopInfo.h" #include "llvm/Target/TargetMachine.h" @@ -78,7 +78,7 @@ Pass *getRegisterAllocator(TargetMachine &T) { PhyRegAlloc::PhyRegAlloc(Function *F, const TargetMachine& tm, FunctionLiveVarInfo *Lvi, LoopInfo *LDC) : TM(tm), Meth(F), - mcInfo(MachineCodeForMethod::get(F)), + mcInfo(MachineFunction::get(F)), LVI(Lvi), LRI(F, tm, RegClassList), MRI(tm.getRegInfo()), NumOfRegClasses(MRI.getNumOfRegClasses()), @@ -1194,7 +1194,7 @@ void PhyRegAlloc::allocateRegisters() if (DEBUG_RA) { cerr << "\n**** Machine Code After Register Allocation:\n\n"; - MachineCodeForMethod::get(Meth).dump(); + MachineFunction::get(Meth).dump(); } } diff --git a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h index da4d2fd8ecd..ca517138b75 100644 --- a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h +++ b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h @@ -35,7 +35,7 @@ #include <vector> #include <map> -class MachineCodeForMethod; +class MachineFunction; class MachineRegInfo; class FunctionLiveVarInfo; class MachineInstr; @@ -71,7 +71,7 @@ class PhyRegAlloc: public NonCopyable { std::vector<RegClass *> RegClassList; // vector of register classes const TargetMachine &TM; // target machine const Function *Meth; // name of the function we work on - MachineCodeForMethod &mcInfo; // descriptor for method's native code + MachineFunction &mcInfo; // descriptor for method's native code FunctionLiveVarInfo *const LVI; // LV information for this method // (already computed for BBs) LiveRangeInfo LRI; // LR info (will be computed) |

