diff options
author | Chris Lattner <sabre@nondot.org> | 2002-04-28 16:21:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-04-28 16:21:30 +0000 |
commit | 78dd56fe624c015195ba8493b8ea627d7671a565 (patch) | |
tree | a9178fdfa065ee161e54d7d091e83d52521bead2 /llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp | |
parent | 002958cdbbd8b931a43c42a78d4a4a44531700c0 (diff) | |
download | bcm5719-llvm-78dd56fe624c015195ba8493b8ea627d7671a565.tar.gz bcm5719-llvm-78dd56fe624c015195ba8493b8ea627d7671a565.zip |
Eliminate the cfg namespace, moving LoopInfo, Dominators, Interval* classes
to the global namespace
llvm-svn: 2370
Diffstat (limited to 'llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp index 4f12d697b14..4ad98d917fd 100644 --- a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp +++ b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp @@ -51,7 +51,7 @@ namespace { << " ********************\n"; PhyRegAlloc PRA(F, Target, &getAnalysis<FunctionLiveVarInfo>(), - &getAnalysis<cfg::LoopInfo>()); + &getAnalysis<LoopInfo>()); PRA.allocateRegisters(); if (DEBUG_RA) cerr << "\nRegister allocation complete!\n"; @@ -59,7 +59,7 @@ namespace { } virtual void getAnalysisUsage(AnalysisUsage &AU) const { - AU.addRequired(cfg::LoopInfo::ID); + AU.addRequired(LoopInfo::ID); AU.addRequired(FunctionLiveVarInfo::ID); } }; @@ -72,10 +72,8 @@ Pass *getRegisterAllocator(TargetMachine &T) { //---------------------------------------------------------------------------- // Constructor: Init local composite objects and create register classes. //---------------------------------------------------------------------------- -PhyRegAlloc::PhyRegAlloc(Function *F, - const TargetMachine& tm, - FunctionLiveVarInfo *Lvi, - cfg::LoopInfo *LDC) +PhyRegAlloc::PhyRegAlloc(Function *F, const TargetMachine& tm, + FunctionLiveVarInfo *Lvi, LoopInfo *LDC) : TM(tm), Meth(F), mcInfo(MachineCodeForMethod::get(F)), LVI(Lvi), LRI(F, tm, RegClassList), |