mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
finegrainify namespacification
minor cleanups git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10619 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0898c78a52
commit
aa4c91ff96
@ -1,4 +1,4 @@
|
|||||||
//===-- Passes.cpp - Target independent code generation passes -*- C++ -*-===//
|
//===-- Passes.cpp - Target independent code generation passes ------------===//
|
||||||
//
|
//
|
||||||
// The LLVM Compiler Infrastructure
|
// The LLVM Compiler Infrastructure
|
||||||
//
|
//
|
||||||
@ -14,8 +14,8 @@
|
|||||||
|
|
||||||
#include "llvm/CodeGen/Passes.h"
|
#include "llvm/CodeGen/Passes.h"
|
||||||
#include "Support/CommandLine.h"
|
#include "Support/CommandLine.h"
|
||||||
|
#include <iostream>
|
||||||
namespace llvm {
|
using namespace llvm;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
enum RegAllocName { simple, local, linearscan };
|
enum RegAllocName { simple, local, linearscan };
|
||||||
@ -31,19 +31,17 @@ namespace {
|
|||||||
cl::init(local));
|
cl::init(local));
|
||||||
}
|
}
|
||||||
|
|
||||||
FunctionPass *createRegisterAllocator()
|
FunctionPass *llvm::createRegisterAllocator() {
|
||||||
{
|
|
||||||
switch (RegAlloc) {
|
switch (RegAlloc) {
|
||||||
|
default:
|
||||||
|
std::cerr << "no register allocator selected";
|
||||||
|
abort();
|
||||||
case simple:
|
case simple:
|
||||||
return createSimpleRegisterAllocator();
|
return createSimpleRegisterAllocator();
|
||||||
case local:
|
case local:
|
||||||
return createLocalRegisterAllocator();
|
return createLocalRegisterAllocator();
|
||||||
case linearscan:
|
case linearscan:
|
||||||
return createLinearScanRegisterAllocator();
|
return createLinearScanRegisterAllocator();
|
||||||
default:
|
|
||||||
assert(0 && "no register allocator selected");
|
|
||||||
return 0; // not reached
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // End llvm namespace
|
|
||||||
|
Loading…
Reference in New Issue
Block a user