summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86TargetMachine.cpp
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
commit720eb217a722425fd6ed9a95710379db79b41efe (patch)
tree47dcd10103c6dee9ef910514fa33fdc340b150bf /llvm/lib/Target/X86/X86TargetMachine.cpp
parentef41cbb97d385a929c15270c52be7f485eda8cfa (diff)
downloadbcm5719-llvm-720eb217a722425fd6ed9a95710379db79b41efe.tar.gz
bcm5719-llvm-720eb217a722425fd6ed9a95710379db79b41efe.zip
Add placeholder variable to make Win32 work, applied for Morten Ofstad
llvm-svn: 17406
Diffstat (limited to 'llvm/lib/Target/X86/X86TargetMachine.cpp')
-rw-r--r--llvm/lib/Target/X86/X86TargetMachine.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86TargetMachine.cpp b/llvm/lib/Target/X86/X86TargetMachine.cpp
index 67328931deb..62440ee3fbb 100644
--- a/llvm/lib/Target/X86/X86TargetMachine.cpp
+++ b/llvm/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 "
OpenPOWER on IntegriCloud