From b4b12535e892e45e38718a842fd955efb24807c9 Mon Sep 17 00:00:00 2001 From: Oscar Fuentes Date: Tue, 28 Sep 2010 22:39:14 +0000 Subject: [PATCH] Removed a bunch of unnecessary target_link_libraries. llvm-svn: 114999 --- llvm/lib/Analysis/CMakeLists.txt | 2 -- llvm/lib/CodeGen/AsmPrinter/CMakeLists.txt | 1 - llvm/lib/CodeGen/CMakeLists.txt | 2 -- llvm/lib/CodeGen/SelectionDAG/CMakeLists.txt | 2 -- llvm/lib/Support/CMakeLists.txt | 2 -- llvm/lib/Target/ARM/CMakeLists.txt | 5 ++++- llvm/lib/Target/Alpha/CMakeLists.txt | 2 -- llvm/lib/Target/CellSPU/CMakeLists.txt | 2 -- llvm/lib/Target/MBlaze/CMakeLists.txt | 2 -- llvm/lib/Target/MSP430/CMakeLists.txt | 2 -- llvm/lib/Target/Mips/CMakeLists.txt | 2 -- llvm/lib/Target/PIC16/AsmPrinter/CMakeLists.txt | 4 ---- llvm/lib/Target/PTX/CMakeLists.txt | 2 -- llvm/lib/Target/PowerPC/CMakeLists.txt | 2 -- llvm/lib/Target/Sparc/CMakeLists.txt | 2 -- llvm/lib/Target/SystemZ/CMakeLists.txt | 2 -- llvm/lib/Transforms/IPO/CMakeLists.txt | 2 -- llvm/lib/Transforms/InstCombine/CMakeLists.txt | 2 -- llvm/lib/Transforms/Scalar/CMakeLists.txt | 2 -- llvm/lib/Transforms/Utils/CMakeLists.txt | 1 - 20 files changed, 4 insertions(+), 39 deletions(-) diff --git a/llvm/lib/Analysis/CMakeLists.txt b/llvm/lib/Analysis/CMakeLists.txt index 80cae6c47abe..e8c2573e4dc0 100644 --- a/llvm/lib/Analysis/CMakeLists.txt +++ b/llvm/lib/Analysis/CMakeLists.txt @@ -50,5 +50,3 @@ add_llvm_library(LLVMAnalysis TypeBasedAliasAnalysis.cpp ValueTracking.cpp ) - -target_link_libraries (LLVMAnalysis LLVMSupport) diff --git a/llvm/lib/CodeGen/AsmPrinter/CMakeLists.txt b/llvm/lib/CodeGen/AsmPrinter/CMakeLists.txt index ca8b8436c11f..98fb924daaeb 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CMakeLists.txt +++ b/llvm/lib/CodeGen/AsmPrinter/CMakeLists.txt @@ -8,4 +8,3 @@ add_llvm_library(LLVMAsmPrinter OcamlGCPrinter.cpp ) -target_link_libraries (LLVMAsmPrinter LLVMMCParser) diff --git a/llvm/lib/CodeGen/CMakeLists.txt b/llvm/lib/CodeGen/CMakeLists.txt index 2ef115dbd205..a94b2ae47f4e 100644 --- a/llvm/lib/CodeGen/CMakeLists.txt +++ b/llvm/lib/CodeGen/CMakeLists.txt @@ -82,5 +82,3 @@ add_llvm_library(LLVMCodeGen VirtRegMap.cpp VirtRegRewriter.cpp ) - -target_link_libraries (LLVMCodeGen LLVMCore LLVMScalarOpts) diff --git a/llvm/lib/CodeGen/SelectionDAG/CMakeLists.txt b/llvm/lib/CodeGen/SelectionDAG/CMakeLists.txt index 799988a4c862..15932c03a190 100644 --- a/llvm/lib/CodeGen/SelectionDAG/CMakeLists.txt +++ b/llvm/lib/CodeGen/SelectionDAG/CMakeLists.txt @@ -21,5 +21,3 @@ add_llvm_library(LLVMSelectionDAG TargetLowering.cpp TargetSelectionDAGInfo.cpp ) - -target_link_libraries (LLVMSelectionDAG LLVMAnalysis LLVMAsmPrinter LLVMCodeGen) diff --git a/llvm/lib/Support/CMakeLists.txt b/llvm/lib/Support/CMakeLists.txt index 0c70a402654e..25fce71a6ad1 100644 --- a/llvm/lib/Support/CMakeLists.txt +++ b/llvm/lib/Support/CMakeLists.txt @@ -45,5 +45,3 @@ add_llvm_library(LLVMSupport regfree.c regstrlcpy.c ) - -target_link_libraries (LLVMSupport LLVMSystem) diff --git a/llvm/lib/Target/ARM/CMakeLists.txt b/llvm/lib/Target/ARM/CMakeLists.txt index 8bd0c0650727..49120588e30e 100644 --- a/llvm/lib/Target/ARM/CMakeLists.txt +++ b/llvm/lib/Target/ARM/CMakeLists.txt @@ -49,4 +49,7 @@ add_llvm_target(ARMCodeGen Thumb2SizeReduction.cpp ) -target_link_libraries (LLVMARMCodeGen LLVMARMAsmPrinter LLVMSelectionDAG) +# The ARM CodeGen library depends on the AsmPrinter for just an +# vtable, but GenLibDeps.pl is unable to detect it. So without this +# the build fails with "undefined reference to `vtable for ..." +target_link_libraries(LLVMARMCodeGen LLVMARMAsmPrinter) diff --git a/llvm/lib/Target/Alpha/CMakeLists.txt b/llvm/lib/Target/Alpha/CMakeLists.txt index fbf7f3ab6b30..175ca6669945 100644 --- a/llvm/lib/Target/Alpha/CMakeLists.txt +++ b/llvm/lib/Target/Alpha/CMakeLists.txt @@ -25,5 +25,3 @@ add_llvm_target(AlphaCodeGen AlphaTargetMachine.cpp AlphaSelectionDAGInfo.cpp ) - -target_link_libraries (LLVMAlphaCodeGen LLVMSelectionDAG) diff --git a/llvm/lib/Target/CellSPU/CMakeLists.txt b/llvm/lib/Target/CellSPU/CMakeLists.txt index ddfca37d23e3..213dea9230cb 100644 --- a/llvm/lib/Target/CellSPU/CMakeLists.txt +++ b/llvm/lib/Target/CellSPU/CMakeLists.txt @@ -23,5 +23,3 @@ add_llvm_target(CellSPUCodeGen SPUTargetMachine.cpp SPUSelectionDAGInfo.cpp ) - -target_link_libraries (LLVMCellSPUCodeGen LLVMSelectionDAG) diff --git a/llvm/lib/Target/MBlaze/CMakeLists.txt b/llvm/lib/Target/MBlaze/CMakeLists.txt index 7f85bf82518d..7b470eec2bd4 100644 --- a/llvm/lib/Target/MBlaze/CMakeLists.txt +++ b/llvm/lib/Target/MBlaze/CMakeLists.txt @@ -24,5 +24,3 @@ add_llvm_target(MBlazeCodeGen MBlazeIntrinsicInfo.cpp MBlazeSelectionDAGInfo.cpp ) - -target_link_libraries (LLVMMBlazeCodeGen LLVMSelectionDAG) diff --git a/llvm/lib/Target/MSP430/CMakeLists.txt b/llvm/lib/Target/MSP430/CMakeLists.txt index a3f60d2a44f1..2360ffdef4bf 100644 --- a/llvm/lib/Target/MSP430/CMakeLists.txt +++ b/llvm/lib/Target/MSP430/CMakeLists.txt @@ -21,5 +21,3 @@ add_llvm_target(MSP430CodeGen MSP430TargetMachine.cpp MSP430SelectionDAGInfo.cpp ) - -target_link_libraries (LLVMMSP430CodeGen LLVMSelectionDAG) diff --git a/llvm/lib/Target/Mips/CMakeLists.txt b/llvm/lib/Target/Mips/CMakeLists.txt index a77802aec52a..78767e52e1da 100644 --- a/llvm/lib/Target/Mips/CMakeLists.txt +++ b/llvm/lib/Target/Mips/CMakeLists.txt @@ -22,5 +22,3 @@ add_llvm_target(MipsCodeGen MipsTargetObjectFile.cpp MipsSelectionDAGInfo.cpp ) - -target_link_libraries (LLVMMipsCodeGen LLVMSelectionDAG) diff --git a/llvm/lib/Target/PIC16/AsmPrinter/CMakeLists.txt b/llvm/lib/Target/PIC16/AsmPrinter/CMakeLists.txt index 32f4bc4052d9..f24c78a59d20 100644 --- a/llvm/lib/Target/PIC16/AsmPrinter/CMakeLists.txt +++ b/llvm/lib/Target/PIC16/AsmPrinter/CMakeLists.txt @@ -7,8 +7,4 @@ add_llvm_library(LLVMPIC16AsmPrinter PIC16AsmPrinter.cpp ) -target_link_libraries(LLVMPIC16AsmPrinter - LLVMPIC16CodeGen - ) - add_dependencies(LLVMPIC16AsmPrinter PIC16CodeGenTable_gen) diff --git a/llvm/lib/Target/PTX/CMakeLists.txt b/llvm/lib/Target/PTX/CMakeLists.txt index 5104f2b8bff4..1f5fcbb6c8d2 100644 --- a/llvm/lib/Target/PTX/CMakeLists.txt +++ b/llvm/lib/Target/PTX/CMakeLists.txt @@ -18,5 +18,3 @@ add_llvm_target(PTXCodeGen PTXSubtarget.cpp PTXTargetMachine.cpp ) - -target_link_libraries (LLVMPTXCodeGen LLVMSelectionDAG) diff --git a/llvm/lib/Target/PowerPC/CMakeLists.txt b/llvm/lib/Target/PowerPC/CMakeLists.txt index 7ffc5eb5f311..5f48bd00c63c 100644 --- a/llvm/lib/Target/PowerPC/CMakeLists.txt +++ b/llvm/lib/Target/PowerPC/CMakeLists.txt @@ -26,5 +26,3 @@ add_llvm_target(PowerPCCodeGen PPCTargetMachine.cpp PPCSelectionDAGInfo.cpp ) - -target_link_libraries (LLVMPowerPCCodeGen LLVMSelectionDAG) diff --git a/llvm/lib/Target/Sparc/CMakeLists.txt b/llvm/lib/Target/Sparc/CMakeLists.txt index 684cadfb57f7..b789fa7ad5f4 100644 --- a/llvm/lib/Target/Sparc/CMakeLists.txt +++ b/llvm/lib/Target/Sparc/CMakeLists.txt @@ -22,5 +22,3 @@ add_llvm_target(SparcCodeGen SparcTargetMachine.cpp SparcSelectionDAGInfo.cpp ) - -target_link_libraries (LLVMSparcCodeGen LLVMSelectionDAG) diff --git a/llvm/lib/Target/SystemZ/CMakeLists.txt b/llvm/lib/Target/SystemZ/CMakeLists.txt index 880e56f0525b..e780934d5140 100644 --- a/llvm/lib/Target/SystemZ/CMakeLists.txt +++ b/llvm/lib/Target/SystemZ/CMakeLists.txt @@ -20,5 +20,3 @@ add_llvm_target(SystemZCodeGen SystemZTargetMachine.cpp SystemZSelectionDAGInfo.cpp ) - -target_link_libraries (LLVMSystemZCodeGen LLVMSelectionDAG) diff --git a/llvm/lib/Transforms/IPO/CMakeLists.txt b/llvm/lib/Transforms/IPO/CMakeLists.txt index 65483e8fed63..92bef3bb75e9 100644 --- a/llvm/lib/Transforms/IPO/CMakeLists.txt +++ b/llvm/lib/Transforms/IPO/CMakeLists.txt @@ -23,5 +23,3 @@ add_llvm_library(LLVMipo StripSymbols.cpp StructRetPromotion.cpp ) - -target_link_libraries (LLVMipo LLVMScalarOpts LLVMInstCombine) diff --git a/llvm/lib/Transforms/InstCombine/CMakeLists.txt b/llvm/lib/Transforms/InstCombine/CMakeLists.txt index 5b1ff3e23bb0..d070ccc0d63f 100644 --- a/llvm/lib/Transforms/InstCombine/CMakeLists.txt +++ b/llvm/lib/Transforms/InstCombine/CMakeLists.txt @@ -13,5 +13,3 @@ add_llvm_library(LLVMInstCombine InstCombineSimplifyDemanded.cpp InstCombineVectorOps.cpp ) - -target_link_libraries (LLVMInstCombine LLVMTransformUtils) diff --git a/llvm/lib/Transforms/Scalar/CMakeLists.txt b/llvm/lib/Transforms/Scalar/CMakeLists.txt index b7598eace536..85fc87f0011a 100644 --- a/llvm/lib/Transforms/Scalar/CMakeLists.txt +++ b/llvm/lib/Transforms/Scalar/CMakeLists.txt @@ -31,5 +31,3 @@ add_llvm_library(LLVMScalarOpts TailDuplication.cpp TailRecursionElimination.cpp ) - -target_link_libraries (LLVMScalarOpts LLVMTransformUtils) diff --git a/llvm/lib/Transforms/Utils/CMakeLists.txt b/llvm/lib/Transforms/Utils/CMakeLists.txt index 61cbeb2bd35b..b3c08f2b3d25 100644 --- a/llvm/lib/Transforms/Utils/CMakeLists.txt +++ b/llvm/lib/Transforms/Utils/CMakeLists.txt @@ -25,4 +25,3 @@ add_llvm_library(LLVMTransformUtils ValueMapper.cpp ) -target_link_libraries (LLVMTransformUtils LLVMSupport)