diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-16 01:55:13 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-16 01:55:13 +0000 |
commit | bf79dcb6c45fdf395584ce127852e75cf44def3b (patch) | |
tree | d1e7a0e76e742fc614c088f868e8b595ff04f9db /lib/Target/X86 | |
parent | ecbc438ac0dc7ca54ce1509e6d19bbfd577aaef6 (diff) | |
download | external_llvm-bf79dcb6c45fdf395584ce127852e75cf44def3b.zip external_llvm-bf79dcb6c45fdf395584ce127852e75cf44def3b.tar.gz external_llvm-bf79dcb6c45fdf395584ce127852e75cf44def3b.tar.bz2 |
Kill off <TARGET>MachineModule variables, and <TARGETASMPRINTER>ForceLink
variables.
- Module initialization functions supplanted the need for these.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75886 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86')
-rw-r--r-- | lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp | 3 | ||||
-rw-r--r-- | lib/Target/X86/X86TargetMachine.cpp | 7 |
2 files changed, 0 insertions, 10 deletions
diff --git a/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp b/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp index d2bab78..adb2428 100644 --- a/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp +++ b/lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp @@ -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; diff --git a/lib/Target/X86/X86TargetMachine.cpp b/lib/Target/X86/X86TargetMachine.cpp index 43fbbc0..29f38a3 100644 --- a/lib/Target/X86/X86TargetMachine.cpp +++ b/lib/Target/X86/X86TargetMachine.cpp @@ -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> |