From: Oscar Fuentes Date: Tue, 28 Sep 2010 22:39:14 +0000 (+0000) Subject: Removed a bunch of unnecessary target_link_libraries. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=3609eb0de2f786ca6917d0388c37c23873dbd247;p=oota-llvm.git Removed a bunch of unnecessary target_link_libraries. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114999 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/CMakeLists.txt b/lib/Analysis/CMakeLists.txt index 80cae6c47ab..e8c2573e4dc 100644 --- a/lib/Analysis/CMakeLists.txt +++ b/lib/Analysis/CMakeLists.txt @@ -50,5 +50,3 @@ add_llvm_library(LLVMAnalysis TypeBasedAliasAnalysis.cpp ValueTracking.cpp ) - -target_link_libraries (LLVMAnalysis LLVMSupport) diff --git a/lib/CodeGen/AsmPrinter/CMakeLists.txt b/lib/CodeGen/AsmPrinter/CMakeLists.txt index ca8b8436c11..98fb924daae 100644 --- a/lib/CodeGen/AsmPrinter/CMakeLists.txt +++ b/lib/CodeGen/AsmPrinter/CMakeLists.txt @@ -8,4 +8,3 @@ add_llvm_library(LLVMAsmPrinter OcamlGCPrinter.cpp ) -target_link_libraries (LLVMAsmPrinter LLVMMCParser) diff --git a/lib/CodeGen/CMakeLists.txt b/lib/CodeGen/CMakeLists.txt index 2ef115dbd20..a94b2ae47f4 100644 --- a/lib/CodeGen/CMakeLists.txt +++ b/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/lib/CodeGen/SelectionDAG/CMakeLists.txt b/lib/CodeGen/SelectionDAG/CMakeLists.txt index 799988a4c86..15932c03a19 100644 --- a/lib/CodeGen/SelectionDAG/CMakeLists.txt +++ b/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/lib/Support/CMakeLists.txt b/lib/Support/CMakeLists.txt index 0c70a402654..25fce71a6ad 100644 --- a/lib/Support/CMakeLists.txt +++ b/lib/Support/CMakeLists.txt @@ -45,5 +45,3 @@ add_llvm_library(LLVMSupport regfree.c regstrlcpy.c ) - -target_link_libraries (LLVMSupport LLVMSystem) diff --git a/lib/Target/ARM/CMakeLists.txt b/lib/Target/ARM/CMakeLists.txt index 8bd0c065072..49120588e30 100644 --- a/lib/Target/ARM/CMakeLists.txt +++ b/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/lib/Target/Alpha/CMakeLists.txt b/lib/Target/Alpha/CMakeLists.txt index fbf7f3ab6b3..175ca666994 100644 --- a/lib/Target/Alpha/CMakeLists.txt +++ b/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/lib/Target/CellSPU/CMakeLists.txt b/lib/Target/CellSPU/CMakeLists.txt index ddfca37d23e..213dea9230c 100644 --- a/lib/Target/CellSPU/CMakeLists.txt +++ b/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/lib/Target/MBlaze/CMakeLists.txt b/lib/Target/MBlaze/CMakeLists.txt index 7f85bf82518..7b470eec2bd 100644 --- a/lib/Target/MBlaze/CMakeLists.txt +++ b/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/lib/Target/MSP430/CMakeLists.txt b/lib/Target/MSP430/CMakeLists.txt index a3f60d2a44f..2360ffdef4b 100644 --- a/lib/Target/MSP430/CMakeLists.txt +++ b/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/lib/Target/Mips/CMakeLists.txt b/lib/Target/Mips/CMakeLists.txt index a77802aec52..78767e52e1d 100644 --- a/lib/Target/Mips/CMakeLists.txt +++ b/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/lib/Target/PIC16/AsmPrinter/CMakeLists.txt b/lib/Target/PIC16/AsmPrinter/CMakeLists.txt index 32f4bc4052d..f24c78a59d2 100644 --- a/lib/Target/PIC16/AsmPrinter/CMakeLists.txt +++ b/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/lib/Target/PTX/CMakeLists.txt b/lib/Target/PTX/CMakeLists.txt index 5104f2b8bff..1f5fcbb6c8d 100644 --- a/lib/Target/PTX/CMakeLists.txt +++ b/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/lib/Target/PowerPC/CMakeLists.txt b/lib/Target/PowerPC/CMakeLists.txt index 7ffc5eb5f31..5f48bd00c63 100644 --- a/lib/Target/PowerPC/CMakeLists.txt +++ b/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/lib/Target/Sparc/CMakeLists.txt b/lib/Target/Sparc/CMakeLists.txt index 684cadfb57f..b789fa7ad5f 100644 --- a/lib/Target/Sparc/CMakeLists.txt +++ b/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/lib/Target/SystemZ/CMakeLists.txt b/lib/Target/SystemZ/CMakeLists.txt index 880e56f0525..e780934d514 100644 --- a/lib/Target/SystemZ/CMakeLists.txt +++ b/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/lib/Transforms/IPO/CMakeLists.txt b/lib/Transforms/IPO/CMakeLists.txt index 65483e8fed6..92bef3bb75e 100644 --- a/lib/Transforms/IPO/CMakeLists.txt +++ b/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/lib/Transforms/InstCombine/CMakeLists.txt b/lib/Transforms/InstCombine/CMakeLists.txt index 5b1ff3e23bb..d070ccc0d63 100644 --- a/lib/Transforms/InstCombine/CMakeLists.txt +++ b/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/lib/Transforms/Scalar/CMakeLists.txt b/lib/Transforms/Scalar/CMakeLists.txt index b7598eace53..85fc87f0011 100644 --- a/lib/Transforms/Scalar/CMakeLists.txt +++ b/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/lib/Transforms/Utils/CMakeLists.txt b/lib/Transforms/Utils/CMakeLists.txt index 61cbeb2bd35..b3c08f2b3d2 100644 --- a/lib/Transforms/Utils/CMakeLists.txt +++ b/lib/Transforms/Utils/CMakeLists.txt @@ -25,4 +25,3 @@ add_llvm_library(LLVMTransformUtils ValueMapper.cpp ) -target_link_libraries (LLVMTransformUtils LLVMSupport)