From: Jeff Cohen Date: Mon, 3 Jan 2005 16:34:19 +0000 (+0000) Subject: Revert elimination of global variable hack... still needed. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1c32f79a82293d0ef4cdc8decf67057356674af9;p=oota-llvm.git 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 --- diff --git a/lib/Target/X86/X86TargetMachine.cpp b/lib/Target/X86/X86TargetMachine.cpp index 24406d5be97..0e3eea43924 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 NoSSAPeephole("disable-ssa-peephole", cl::init(true), cl::desc("Disable the ssa-based peephole optimizer "