X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FCodeGen%2FMachineLoopInfo.cpp;h=68ddb7b3f47311b592fcb4844b084948c534c205;hb=f9410141f703f4e8a6aba717617ef958249f6d13;hp=d134357d2af9eff96d9ea919ffc91e486e711132;hpb=4ee451de366474b9c228b4e5fa573795a715216d;p=oota-llvm.git diff --git a/lib/CodeGen/MachineLoopInfo.cpp b/lib/CodeGen/MachineLoopInfo.cpp index d134357d2af..68ddb7b3f47 100644 --- a/lib/CodeGen/MachineLoopInfo.cpp +++ b/lib/CodeGen/MachineLoopInfo.cpp @@ -16,7 +16,7 @@ #include "llvm/CodeGen/MachineLoopInfo.h" #include "llvm/CodeGen/MachineDominators.h" - +#include "llvm/CodeGen/Passes.h" using namespace llvm; TEMPLATE_INSTANTIATION(class LoopBase); @@ -26,6 +26,8 @@ char MachineLoopInfo::ID = 0; static RegisterPass X("machine-loops", "Machine Natural Loop Construction", true); +const PassInfo *const llvm::MachineLoopInfoID = &X; + bool MachineLoopInfo::runOnMachineFunction(MachineFunction &) { releaseMemory(); LI->Calculate(getAnalysis().getBase()); // Update @@ -36,6 +38,3 @@ void MachineLoopInfo::getAnalysisUsage(AnalysisUsage &AU) const { AU.setPreservesAll(); AU.addRequired(); } - -// Ensure this file gets linked when MachineLoopInfo.h is used. -DEFINING_FILE_FOR(MachineLoopInfo)