mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 06:32:24 +00:00
REmove huge hack used by register allocator
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1694 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3e0f8288e7
commit
f806c025bd
@ -31,15 +31,3 @@ void cfg::LoopDepthCalculator::getAnalysisUsageInfo(Pass::AnalysisSet &Requires,
|
||||
Requires.push_back(LoopInfo::ID);
|
||||
}
|
||||
|
||||
#if 1 /// FIXME, REMOVE EVENTUALLY
|
||||
#include "llvm/PassManager.h"
|
||||
|
||||
cfg::LoopDepthCalculator::LoopDepthCalculator(Method *M) {
|
||||
PassManagerT<Method> PassMgr;
|
||||
LoopInfo *LI = new LoopInfo(LoopInfo::ID);
|
||||
PassMgr.add(LI);
|
||||
PassMgr.run(M);
|
||||
calculate(M, *LI);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user