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