From: Chris Lattner Date: Mon, 1 Nov 2004 20:10:20 +0000 (+0000) Subject: Add placeholder variable to make Win32 work, applied for Morten Ofstad X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7cc372bfc36669ce4838a85da91b491486fb6a15;p=oota-llvm.git Add placeholder variable to make Win32 work, applied for Morten Ofstad git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17406 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86TargetMachine.cpp b/lib/Target/X86/X86TargetMachine.cpp index 67328931deb..62440ee3fbb 100644 --- a/lib/Target/X86/X86TargetMachine.cpp +++ b/lib/Target/X86/X86TargetMachine.cpp @@ -27,6 +27,12 @@ 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 = 0; + namespace { cl::opt NoSSAPeephole("disable-ssa-peephole", cl::init(true), cl::desc("Disable the ssa-based peephole optimizer "