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 | 1b7f7dc4b45a900fae2e9b062d588a995935727a (patch) | |
tree | f0853819719944846cc56e8742935169d838249e /lib/Target | |
parent | 8fc2f2072de83665ae20e06929e28317f449bcdf (diff) | |
download | external_llvm-1b7f7dc4b45a900fae2e9b062d588a995935727a.zip external_llvm-1b7f7dc4b45a900fae2e9b062d588a995935727a.tar.gz external_llvm-1b7f7dc4b45a900fae2e9b062d588a995935727a.tar.bz2 |
Eliminate the cfg namespace, moving LoopInfo, Dominators, Interval* classes
to the global namespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2370 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp index 4f12d69..4ad98d9 100644 --- a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp +++ b/lib/Target/SparcV9/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), |