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.

llvm-svn: 19252
This commit is contained in:
Jeff Cohen 2005-01-02 04:23:12 +00:00
parent 733aac1270
commit 2cf40e142c
5 changed files with 7 additions and 13 deletions

View File

@ -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 "

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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}"