diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-07-16 14:36:52 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-07-16 14:36:52 +0000 |
commit | 7df8462038c4393771a0961c60a2686169e4fd9a (patch) | |
tree | f1772da62843e3dca4748ab533e1931bfa29abc0 /lib/Target/SystemZ/SystemZTargetMachine.cpp | |
parent | c9751806242a1e893f05cdbd3cc22c4685a971d4 (diff) |
Unbreak
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76064 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ/SystemZTargetMachine.cpp')
-rw-r--r-- | lib/Target/SystemZ/SystemZTargetMachine.cpp | 40 |
1 files changed, 18 insertions, 22 deletions
diff --git a/lib/Target/SystemZ/SystemZTargetMachine.cpp b/lib/Target/SystemZ/SystemZTargetMachine.cpp index 4be8ea9936..01be4edf7d 100644 --- a/lib/Target/SystemZ/SystemZTargetMachine.cpp +++ b/lib/Target/SystemZ/SystemZTargetMachine.cpp @@ -18,17 +18,18 @@ #include "llvm/Target/TargetMachineRegistry.h" using namespace llvm; -/// SystemZTargetMachineModule - 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 SystemZTargetMachineModule; -int SystemZTargetMachineModule = 0; +extern Target TheSystemZTarget; +namespace { + // Register the target. + RegisterTarget<SystemZTargetMachine> X(TheSystemZTarget, + "systemz", + "SystemZ [experimental]"); +} + +// Force static initialization. +extern "C" void LLVMInitializeSystemZTarget() { -// Register the target. -static RegisterTarget<SystemZTargetMachine> -X("systemz", "SystemZ [experimental]"); +} const TargetAsmInfo *SystemZTargetMachine::createTargetAsmInfo() const { // FIXME: Handle Solaris subtarget someday :) @@ -37,9 +38,13 @@ const TargetAsmInfo *SystemZTargetMachine::createTargetAsmInfo() const { /// SystemZTargetMachine ctor - Create an ILP64 architecture model /// -SystemZTargetMachine::SystemZTargetMachine(const Module &M, const std::string &FS) - : Subtarget(*this, M, FS), - DataLayout("E-p:64:64:64-i8:8:16-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f128:128:128-a0:16:16"), +SystemZTargetMachine::SystemZTargetMachine(const Target &T, + const Module &M, + const std::string &FS) + : LLVMTargetMachine(T), + Subtarget(*this, M, FS), + DataLayout("E-p:64:64:64-i8:8:16-i16:16:16-i32:32:32-i64:64:64-f32:32:32" + "-f64:64:64-f128:128:128-a0:16:16"), InstrInfo(*this), TLInfo(*this), FrameInfo(TargetFrameInfo::StackGrowsDown, 8, -160) { @@ -54,15 +59,6 @@ bool SystemZTargetMachine::addInstSelector(PassManagerBase &PM, return false; } -bool SystemZTargetMachine::addAssemblyEmitter(PassManagerBase &PM, - CodeGenOpt::Level OptLevel, - bool Verbose, - raw_ostream &Out) { - // Output assembly language. - PM.add(createSystemZCodePrinterPass(Out, *this, OptLevel, Verbose)); - return false; -} - unsigned SystemZTargetMachine::getModuleMatchQuality(const Module &M) { std::string TT = M.getTargetTriple(); |