Add placeholder variable to make Win32 work, applied for Morten Ofstad
authorChris Lattner <sabre@nondot.org>
Mon, 1 Nov 2004 20:10:20 +0000 (20:10 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 1 Nov 2004 20:10:20 +0000 (20:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17406 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86TargetMachine.cpp

index 67328931deb493cf2cb1b798dfb04d81b693e0f9..62440ee3fbbd137131f99ef8875dfc5ad3caadc2 100644 (file)
@@ -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<bool> NoSSAPeephole("disable-ssa-peephole", cl::init(true),
                         cl::desc("Disable the ssa-based peephole optimizer "