summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Cohen <jeffc@jolt-lang.org>2005-01-02 04:23:12 +0000
committerJeff Cohen <jeffc@jolt-lang.org>2005-01-02 04:23:12 +0000
commit40296bdf273bebd55899ce3199feba5409b59c27 (patch)
treebd8bb4a90ff6cc1be5fe61328a81572a6653560d
parent5aee0b97aa46cb25ccfe157a3a5612d155519b28 (diff)
downloadllvm-40296bdf273bebd55899ce3199feba5409b59c27.tar.gz
llvm-40296bdf273bebd55899ce3199feba5409b59c27.tar.bz2
llvm-40296bdf273bebd55899ce3199feba5409b59c27.tar.xz
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
-rw-r--r--lib/Target/X86/X86TargetMachine.cpp7
-rw-r--r--win32/Fibonacci/Fibonacci.vcproj4
-rw-r--r--win32/llc/llc.vcproj4
-rw-r--r--win32/lli/lli.vcproj4
-rw-r--r--win32/llvm.sln1
5 files changed, 7 insertions, 13 deletions
diff --git a/lib/Target/X86/X86TargetMachine.cpp b/lib/Target/X86/X86TargetMachine.cpp
index 0e3eea4392..24406d5be9 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<bool> 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 03f3c35c6a..9dd6f9fd2f 100644
--- a/win32/Fibonacci/Fibonacci.vcproj
+++ b/win32/Fibonacci/Fibonacci.vcproj
@@ -37,9 +37,9 @@
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
+ AdditionalDependencies="$(SolutionDir)X86\$(IntDir)\X86TargetMachine.obj"
OutputFile="$(OutDir)/Fibonacci.exe"
LinkIncremental="2"
- ForceSymbolReferences="_X86TargetMachineModule"
GenerateDebugInformation="TRUE"
ProgramDatabaseFile="$(OutDir)/Fibonacci.pdb"
SubSystem="1"
@@ -88,9 +88,9 @@
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
+ AdditionalDependencies="$(SolutionDir)X86\$(IntDir)\X86TargetMachine.obj"
OutputFile="$(OutDir)/Fibonacci.exe"
LinkIncremental="1"
- ForceSymbolReferences="_X86TargetMachineModule"
GenerateDebugInformation="TRUE"
SubSystem="1"
OptimizeReferences="2"
diff --git a/win32/llc/llc.vcproj b/win32/llc/llc.vcproj
index 69111f8692..a5eb134a77 100644
--- a/win32/llc/llc.vcproj
+++ b/win32/llc/llc.vcproj
@@ -36,9 +36,9 @@
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
+ AdditionalDependencies="$(SolutionDir)X86\$(IntDir)\X86TargetMachine.obj"
OutputFile="$(OutDir)/llc.exe"
LinkIncremental="2"
- ForceSymbolReferences="_X86TargetMachineModule"
GenerateDebugInformation="TRUE"
ProgramDatabaseFile="$(OutDir)/llc.pdb"
SubSystem="1"
@@ -87,9 +87,9 @@
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
+ AdditionalDependencies="$(SolutionDir)X86\$(IntDir)\X86TargetMachine.obj"
OutputFile="$(OutDir)/llc.exe"
LinkIncremental="1"
- ForceSymbolReferences="_X86TargetMachineModule"
GenerateDebugInformation="TRUE"
SubSystem="1"
OptimizeReferences="2"
diff --git a/win32/lli/lli.vcproj b/win32/lli/lli.vcproj
index 0f3127f91f..0aae82f72b 100644
--- a/win32/lli/lli.vcproj
+++ b/win32/lli/lli.vcproj
@@ -36,9 +36,9 @@
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
+ AdditionalDependencies="$(SolutionDir)X86\$(IntDir)\X86TargetMachine.obj"
OutputFile="$(OutDir)/lli.exe"
LinkIncremental="2"
- ForceSymbolReferences="_X86TargetMachineModule"
GenerateDebugInformation="TRUE"
ProgramDatabaseFile="$(OutDir)/lli.pdb"
SubSystem="1"
@@ -87,9 +87,9 @@
Name="VCCustomBuildTool"/>
<Tool
Name="VCLinkerTool"
+ AdditionalDependencies="$(SolutionDir)X86\$(IntDir)\X86TargetMachine.obj"
OutputFile="$(OutDir)/lli.exe"
LinkIncremental="1"
- ForceSymbolReferences="_X86TargetMachineModule"
GenerateDebugInformation="TRUE"
SubSystem="1"
OptimizeReferences="2"
diff --git a/win32/llvm.sln b/win32/llvm.sln
index 42ad9b793d..1474da4017 100644
--- a/win32/llvm.sln
+++ b/win32/llvm.sln
@@ -20,6 +20,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Fibonacci", "Fibonacci\Fibo
{45CD78D7-C5D9-47FE-AD12-F3251EEDAFFB} = {45CD78D7-C5D9-47FE-AD12-F3251EEDAFFB}
{76295AE8-A083-460E-9F80-6F2B8923264A} = {76295AE8-A083-460E-9F80-6F2B8923264A}
{0F8407F3-FA23-4CF1-83A9-DCBE0B361489} = {0F8407F3-FA23-4CF1-83A9-DCBE0B361489}
+ {144EEBF6-8C9B-4473-B715-2C821666AF6C} = {144EEBF6-8C9B-4473-B715-2C821666AF6C}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ExecutionEngine", "ExecutionEngine\ExecutionEngine.vcproj", "{76295AE8-A083-460E-9F80-6F2B8923264A}"