[llvm-commits] CVS: llvm/lib/Target/X86/X86TargetMachine.cpp

Jeff Cohen jeffc at jolt-lang.org
Mon Jan 3 08:34:30 PST 2005



Changes in directory llvm/lib/Target/X86:

X86TargetMachine.cpp updated: 1.73 -> 1.74
---
Log message:

Revert elimination of global variable hack... still needed.

---
Diffs of the changes:  (+7 -0)

Index: llvm/lib/Target/X86/X86TargetMachine.cpp
diff -u llvm/lib/Target/X86/X86TargetMachine.cpp:1.73 llvm/lib/Target/X86/X86TargetMachine.cpp:1.74
--- llvm/lib/Target/X86/X86TargetMachine.cpp:1.73	Sat Jan  1 22:23:12 2005
+++ llvm/lib/Target/X86/X86TargetMachine.cpp	Mon Jan  3 10:34:19 2005
@@ -27,6 +27,13 @@
 
 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<bool> NoSSAPeephole("disable-ssa-peephole", cl::init(true),
                         cl::desc("Disable the ssa-based peephole optimizer "






More information about the llvm-commits mailing list