diff --git a/llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp b/llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp index b66e6ef308b3..b5f9275be4bf 100644 --- a/llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp +++ b/llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp @@ -1,4 +1,8 @@ #include "llvm/CodeGen/LiveRangeInfo.h" +#include "llvm/CodeGen/RegClass.h" +#include "llvm/CodeGen/MachineInstr.h" +#include "llvm/Target/TargetMachine.h" +#include "llvm/Method.h" #include using std::cerr; diff --git a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp index 6ba63e3051d8..7efb469b4577 100644 --- a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp +++ b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp @@ -14,6 +14,7 @@ #include "llvm/CodeGen/PhyRegAlloc.h" #include "llvm/CodeGen/MachineInstr.h" #include "llvm/CodeGen/MachineCodeForMethod.h" +#include "llvm/Analysis/LiveVar/MethodLiveVarInfo.h" #include "llvm/Target/TargetMachine.h" #include "llvm/Target/MachineFrameInfo.h" #include @@ -36,7 +37,7 @@ bool RegisterAllocation::runOnMethod(Method *M) { cerr << "\n******************** Method "<< M->getName() << " ********************\n"; - MethodLiveVarInfo LVI(M ); // Analyze live varaibles + MethodLiveVarInfo LVI(M); // Analyze live varaibles LVI.analyze(); PhyRegAlloc PRA(M, Target, &LVI); // allocate registers