From 40296bdf273bebd55899ce3199feba5409b59c27 Mon Sep 17 00:00:00 2001 From: Jeff Cohen Date: Sun, 2 Jan 2005 04:23:12 +0000 Subject: [PATCH] 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19252 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86TargetMachine.cpp | 7 ------- win32/Fibonacci/Fibonacci.vcproj | 4 ++-- win32/llc/llc.vcproj | 4 ++-- win32/lli/lli.vcproj | 4 ++-- win32/llvm.sln | 1 + 5 files changed, 7 insertions(+), 13 deletions(-) diff --git a/lib/Target/X86/X86TargetMachine.cpp b/lib/Target/X86/X86TargetMachine.cpp index 0e3eea43924..24406d5be97 100644 --- a/lib/Target/X86/X86TargetMachine.cpp +++ b/lib/Target/X86/X86TargetMachine.cpp @@ -27,13 +27,6 @@ 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; -int X86TargetMachineModule = 0; - namespace { cl::opt NoSSAPeephole("disable-ssa-peephole", cl::init(true), cl::desc("Disable the ssa-based peephole optimizer " diff --git a/win32/Fibonacci/Fibonacci.vcproj b/win32/Fibonacci/Fibonacci.vcproj index 03f3c35c6ae..9dd6f9fd2f1 100644 --- a/win32/Fibonacci/Fibonacci.vcproj +++ b/win32/Fibonacci/Fibonacci.vcproj @@ -37,9 +37,9 @@ Name="VCCustomBuildTool"/>