aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-11-01 20:10:20 +0000
committerChris Lattner <sabre@nondot.org>2004-11-01 20:10:20 +0000
commit7cc372bfc36669ce4838a85da91b491486fb6a15 (patch)
tree7096f2bacef094f8f28b283936eb5c4255cbae19 /lib/Target/X86
parent68f9658fcb8941a67ee33696428b4a28585e6cd5 (diff)
downloadexternal_llvm-7cc372bfc36669ce4838a85da91b491486fb6a15.zip
external_llvm-7cc372bfc36669ce4838a85da91b491486fb6a15.tar.gz
external_llvm-7cc372bfc36669ce4838a85da91b491486fb6a15.tar.bz2
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
Diffstat (limited to 'lib/Target/X86')
-rw-r--r--lib/Target/X86/X86TargetMachine.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/X86/X86TargetMachine.cpp b/lib/Target/X86/X86TargetMachine.cpp
index 6732893..62440ee 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<bool> NoSSAPeephole("disable-ssa-peephole", cl::init(true),
cl::desc("Disable the ssa-based peephole optimizer "