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

Jeff Cohen jeffc at jolt-lang.org
Sat Jan 1 20:23:23 PST 2005



Changes in directory llvm/lib/Target/X86:

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

Eliminate the use of the global variable hack in the X86 target that was used
to get Visual Studio to link in X86.lib to the executables that need it.  There
is another way of doing it.

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

Index: llvm/lib/Target/X86/X86TargetMachine.cpp
diff -u llvm/lib/Target/X86/X86TargetMachine.cpp:1.72 llvm/lib/Target/X86/X86TargetMachine.cpp:1.73
--- llvm/lib/Target/X86/X86TargetMachine.cpp:1.72	Sun Dec 12 11:40:06 2004
+++ llvm/lib/Target/X86/X86TargetMachine.cpp	Sat Jan  1 22:23:12 2005
@@ -27,13 +27,6 @@
 
 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