mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-02 10:21:54 +00:00
Kill off <TARGET>MachineModule variables, and <TARGETASMPRINTER>ForceLink
variables. - Module initialization functions supplanted the need for these. llvm-svn: 75886
This commit is contained in:
parent
9b099cf51b
commit
90536f6737
@ -28,13 +28,6 @@ static cl::opt<bool> DisableLdStOpti("disable-arm-loadstore-opti", cl::Hidden,
|
||||
static cl::opt<bool> DisableIfConversion("disable-arm-if-conversion",cl::Hidden,
|
||||
cl::desc("Disable if-conversion pass"));
|
||||
|
||||
/// ARMTargetMachineModule - Note that this is used on hosts that cannot link
|
||||
/// in a library unless there are references into the library. In particular,
|
||||
/// it seems that it is not possible to get things to work on Win32 without
|
||||
/// this. Though it is unused, do not remove it.
|
||||
extern "C" int ARMTargetMachineModule;
|
||||
int ARMTargetMachineModule = 0;
|
||||
|
||||
// Register the target.
|
||||
extern Target TheARMTarget;
|
||||
static RegisterTarget<ARMTargetMachine> X(TheARMTarget, "arm", "ARM");
|
||||
|
@ -50,14 +50,6 @@
|
||||
#include <sstream>
|
||||
using namespace llvm;
|
||||
|
||||
/// CBackendTargetMachineModule - Note that this is used on hosts that
|
||||
/// cannot link in a library unless there are references into the
|
||||
/// library. In particular, it seems that it is not possible to get
|
||||
/// things to work on Win32 without this. Though it is unused, do not
|
||||
/// remove it.
|
||||
extern "C" int CBackendTargetMachineModule;
|
||||
int CBackendTargetMachineModule = 0;
|
||||
|
||||
// Register the target.
|
||||
extern Target TheCBackendTarget;
|
||||
static RegisterTarget<CTargetMachine> X(TheCBackendTarget, "c", "C backend");
|
||||
|
@ -72,14 +72,6 @@ static cl::opt<std::string> NameToGenerate("cppfor", cl::Optional,
|
||||
cl::desc("Specify the name of the thing to generate"),
|
||||
cl::init("!bad!"));
|
||||
|
||||
/// CppBackendTargetMachineModule - Note that this is used on hosts
|
||||
/// that cannot link in a library unless there are references into the
|
||||
/// library. In particular, it seems that it is not possible to get
|
||||
/// things to work on Win32 without this. Though it is unused, do not
|
||||
/// remove it.
|
||||
extern "C" int CppBackendTargetMachineModule;
|
||||
int CppBackendTargetMachineModule = 0;
|
||||
|
||||
// Register the target.
|
||||
extern Target TheCppBackendTarget;
|
||||
static RegisterTarget<CPPTargetMachine> X(TheCppBackendTarget, "cpp", "C++ backend");
|
||||
|
@ -47,14 +47,6 @@ namespace {
|
||||
};
|
||||
}
|
||||
|
||||
/// MSILTargetMachineModule - Note that this is used on hosts that
|
||||
/// cannot link in a library unless there are references into the
|
||||
/// library. In particular, it seems that it is not possible to get
|
||||
/// things to work on Win32 without this. Though it is unused, do not
|
||||
/// remove it.
|
||||
extern "C" int MSILTargetMachineModule;
|
||||
int MSILTargetMachineModule = 0;
|
||||
|
||||
extern Target TheMSILTarget;
|
||||
static RegisterTarget<MSILTarget> X(TheMSILTarget, "msil", "MSIL backend");
|
||||
|
||||
|
@ -22,15 +22,6 @@
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
/// MSP430TargetMachineModule - Note that this is used on hosts that
|
||||
/// cannot link in a library unless there are references into the
|
||||
/// library. In particular, it seems that it is not possible to get
|
||||
/// things to work on Win32 without this. Though it is unused, do not
|
||||
/// remove it.
|
||||
extern "C" int MSP430TargetMachineModule;
|
||||
int MSP430TargetMachineModule = 0;
|
||||
|
||||
|
||||
// Register the targets
|
||||
extern Target TheMSP430Target;
|
||||
static RegisterTarget<MSP430TargetMachine>
|
||||
|
@ -19,14 +19,6 @@
|
||||
#include "llvm/Target/TargetMachineRegistry.h"
|
||||
using namespace llvm;
|
||||
|
||||
/// MipsTargetMachineModule - Note that this is used on hosts that
|
||||
/// cannot link in a library unless there are references into the
|
||||
/// library. In particular, it seems that it is not possible to get
|
||||
/// things to work on Win32 without this. Though it is unused, do not
|
||||
/// remove it.
|
||||
extern "C" int MipsTargetMachineModule;
|
||||
int MipsTargetMachineModule = 0;
|
||||
|
||||
// Register the target.
|
||||
extern Target TheMipsTarget;
|
||||
static RegisterTarget<MipsTargetMachine> X(TheMipsTarget, "mips", "Mips");
|
||||
|
@ -22,15 +22,6 @@
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
/// PIC16TargetMachineModule - Note that this is used on hosts that
|
||||
/// cannot link in a library unless there are references into the
|
||||
/// library. In particular, it seems that it is not possible to get
|
||||
/// things to work on Win32 without this. Though it is unused, do not
|
||||
/// remove it.
|
||||
extern "C" int PIC16TargetMachineModule;
|
||||
int PIC16TargetMachineModule = 0;
|
||||
|
||||
|
||||
// Register the targets
|
||||
extern Target ThePIC16Target;
|
||||
static RegisterTarget<PIC16TargetMachine>
|
||||
|
@ -1093,9 +1093,6 @@ FunctionPass *llvm::createPPCAsmPrinterPass(formatted_raw_ostream &o,
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" int PowerPCAsmPrinterForceLink;
|
||||
int PowerPCAsmPrinterForceLink = 0;
|
||||
|
||||
// Force static initialization.
|
||||
extern "C" void LLVMInitializePowerPCAsmPrinter() {
|
||||
extern Target ThePPC32Target;
|
||||
|
@ -21,14 +21,6 @@
|
||||
#include "llvm/Support/FormattedStream.h"
|
||||
using namespace llvm;
|
||||
|
||||
/// PowerPCTargetMachineModule - Note that this is used on hosts that
|
||||
/// cannot link in a library unless there are references into the
|
||||
/// library. In particular, it seems that it is not possible to get
|
||||
/// things to work on Win32 without this. Though it is unused, do not
|
||||
/// remove it.
|
||||
extern "C" int PowerPCTargetMachineModule;
|
||||
int PowerPCTargetMachineModule = 0;
|
||||
|
||||
// Register the targets
|
||||
extern Target ThePPC32Target;
|
||||
static RegisterTarget<PPC32TargetMachine>
|
||||
|
@ -34,9 +34,6 @@ FunctionPass *llvm::createX86CodePrinterPass(formatted_raw_ostream &o,
|
||||
return new X86ATTAsmPrinter(o, tm, tm.getTargetAsmInfo(), verbose);
|
||||
}
|
||||
|
||||
extern "C" int X86AsmPrinterForceLink;
|
||||
int X86AsmPrinterForceLink = 0;
|
||||
|
||||
// Force static initialization.
|
||||
extern "C" void LLVMInitializeX86AsmPrinter() {
|
||||
extern Target TheX86_32Target;
|
||||
|
@ -23,13 +23,6 @@
|
||||
#include "llvm/Target/TargetMachineRegistry.h"
|
||||
using namespace llvm;
|
||||
|
||||
/// X86TargetMachineModule - Note that this is used on hosts that cannot link
|
||||
/// in a library unless there are references into the library. In particular,
|
||||
/// it seems that it is not possible to get things to work on Win32 without
|
||||
/// this. Though it is unused, do not remove it.
|
||||
extern "C" int X86TargetMachineModule;
|
||||
int X86TargetMachineModule = 0;
|
||||
|
||||
// Register the target.
|
||||
extern Target TheX86_32Target;
|
||||
static RegisterTarget<X86_32TargetMachine>
|
||||
|
@ -18,14 +18,6 @@
|
||||
#include "llvm/Target/TargetMachineRegistry.h"
|
||||
using namespace llvm;
|
||||
|
||||
/// XCoreTargetMachineModule - Note that this is used on hosts that
|
||||
/// cannot link in a library unless there are references into the
|
||||
/// library. In particular, it seems that it is not possible to get
|
||||
/// things to work on Win32 without this. Though it is unused, do not
|
||||
/// remove it.
|
||||
extern "C" int XCoreTargetMachineModule;
|
||||
int XCoreTargetMachineModule = 0;
|
||||
|
||||
extern Target TheXCoreTarget;
|
||||
namespace {
|
||||
// Register the target.
|
||||
|
Loading…
x
Reference in New Issue
Block a user