diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2005-01-03 16:34:19 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2005-01-03 16:34:19 +0000 |
commit | 1c32f79a82293d0ef4cdc8decf67057356674af9 (patch) | |
tree | aaf8d4882b4ef5cc604486aa141ef3fc5737e0e7 /lib/Target/X86/X86TargetMachine.cpp | |
parent | 43ff900aae9032cf941313b8d322fbf00a4d4670 (diff) |
Revert elimination of global variable hack... still needed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19273 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86TargetMachine.cpp')
-rw-r--r-- | lib/Target/X86/X86TargetMachine.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Target/X86/X86TargetMachine.cpp b/lib/Target/X86/X86TargetMachine.cpp index 24406d5be9..0e3eea4392 100644 --- a/lib/Target/X86/X86TargetMachine.cpp +++ b/lib/Target/X86/X86TargetMachine.cpp @@ -27,6 +27,13 @@ using namespace llvm; X86VectorEnum llvm::X86Vector = NoSSE; +/// 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; + namespace { cl::opt<bool> NoSSAPeephole("disable-ssa-peephole", cl::init(true), cl::desc("Disable the ssa-based peephole optimizer " |