diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-06-19 19:36:55 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-06-19 19:36:55 +0000 |
commit | bab832e3eb9e31c608dc75b6400f35a09e4caa67 (patch) | |
tree | b5774557e33e87c3f90618261f3d4861066a374a /lib/Target/IA64/IA64TargetMachine.cpp | |
parent | 4d91c1d4670e3a52a0936ad68c06410e8aa3b3e8 (diff) | |
download | external_llvm-bab832e3eb9e31c608dc75b6400f35a09e4caa67.zip external_llvm-bab832e3eb9e31c608dc75b6400f35a09e4caa67.tar.gz external_llvm-bab832e3eb9e31c608dc75b6400f35a09e4caa67.tar.bz2 |
Unbreak cyclic deps
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73781 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/IA64/IA64TargetMachine.cpp')
-rw-r--r-- | lib/Target/IA64/IA64TargetMachine.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/Target/IA64/IA64TargetMachine.cpp b/lib/Target/IA64/IA64TargetMachine.cpp index 6642c66..0b93ee5 100644 --- a/lib/Target/IA64/IA64TargetMachine.cpp +++ b/lib/Target/IA64/IA64TargetMachine.cpp @@ -19,16 +19,13 @@ #include "llvm/Target/TargetMachineRegistry.h" using namespace llvm; -/// IA64TargetMachineModule - 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 IA64TargetMachineModule; -int IA64TargetMachineModule = 0; - -static RegisterTarget<IA64TargetMachine> X("ia64", +// Register the target +static RegisterTarget<IA64TargetMachine> X("ia64", "IA-64 (Itanium) [experimental]"); +// No assembler printer by default +IA64TargetMachine::AsmPrinterCtorFn IA64TargetMachine::AsmPrinterCtor = 0; + // Force static initialization when called from llvm/InitializeAllTargets.h namespace llvm { void InitializeIA64Target() { } @@ -93,7 +90,10 @@ bool IA64TargetMachine::addAssemblyEmitter(PassManagerBase &PM, CodeGenOpt::Level OptLevel, bool Verbose, raw_ostream &Out) { - PM.add(createIA64CodePrinterPass(Out, *this, OptLevel, Verbose)); + // Output assembly language. + assert(AsmPrinterCtor && "AsmPrinter was not linked in"); + if (AsmPrinterCtor) + PM.add(AsmPrinterCtor(Out, *this, OptLevel, Verbose)); return false; } |