mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
1. Change use of "Cache" to "Default".
2. Added argument to instruction scheduler creators so the creators can do special things. 3. Repaired target hazard code. 4. Misc. More to follow. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29450 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -27,13 +27,13 @@ namespace {
|
||||
}
|
||||
|
||||
FunctionPass *llvm::createRegisterAllocator() {
|
||||
RegisterRegAlloc::FunctionPassCtor Ctor = RegisterRegAlloc::getCache();
|
||||
RegisterRegAlloc::FunctionPassCtor Ctor = RegisterRegAlloc::getDefault();
|
||||
|
||||
if (!Ctor) {
|
||||
Ctor = RegisterRegAlloc::FindCtor(RegAlloc);
|
||||
assert(Ctor && "No register allocator found");
|
||||
if (!Ctor) Ctor = RegisterRegAlloc::FirstCtor();
|
||||
RegisterRegAlloc::setCache(Ctor);
|
||||
RegisterRegAlloc::setDefault(Ctor);
|
||||
}
|
||||
|
||||
assert(Ctor && "No register allocator found");
|
||||
|
||||
Reference in New Issue
Block a user