llvm.org GIT mirror llvm / 430721c
Force the greedy register allocator to be linked alongside linear scan. This means that the new register allocator can be used with 'clang -mllvm -regalloc=greedy'. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129764 91177308-0d34-0410-b5e6-96231b3b80d8 Jakob Stoklund Olesen 9 years ago
1 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
5454 RegisterRegAlloc::setDefault(RegAlloc);
5555 }
5656
57 // This forces linking of the greedy register allocator, so -regalloc=greedy
58 // works in clang.
59 if (Ctor == createGreedyRegisterAllocator)
60 return createGreedyRegisterAllocator();
61
5762 if (Ctor != createDefaultRegisterAllocator)
5863 return Ctor();
5964