aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOscar Fuentes <ofv@wanadoo.es>2010-09-28 22:39:14 +0000
committerOscar Fuentes <ofv@wanadoo.es>2010-09-28 22:39:14 +0000
commit3609eb0de2f786ca6917d0388c37c23873dbd247 (patch)
tree4161cae699669172dfe5d8f311eed713e5223e7f
parent44258d1da62d9b268d4ce31ddbe16e3ee3789cab (diff)
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
-rw-r--r--lib/Analysis/CMakeLists.txt2
-rw-r--r--lib/CodeGen/AsmPrinter/CMakeLists.txt1
-rw-r--r--lib/CodeGen/CMakeLists.txt2
-rw-r--r--lib/CodeGen/SelectionDAG/CMakeLists.txt2
-rw-r--r--lib/Support/CMakeLists.txt2
-rw-r--r--lib/Target/ARM/CMakeLists.txt5
-rw-r--r--lib/Target/Alpha/CMakeLists.txt2
-rw-r--r--lib/Target/CellSPU/CMakeLists.txt2
-rw-r--r--lib/Target/MBlaze/CMakeLists.txt2
-rw-r--r--lib/Target/MSP430/CMakeLists.txt2
-rw-r--r--lib/Target/Mips/CMakeLists.txt2
-rw-r--r--lib/Target/PIC16/AsmPrinter/CMakeLists.txt4
-rw-r--r--lib/Target/PTX/CMakeLists.txt2
-rw-r--r--lib/Target/PowerPC/CMakeLists.txt2
-rw-r--r--lib/Target/Sparc/CMakeLists.txt2
-rw-r--r--lib/Target/SystemZ/CMakeLists.txt2
-rw-r--r--lib/Transforms/IPO/CMakeLists.txt2
-rw-r--r--lib/Transforms/InstCombine/CMakeLists.txt2
-rw-r--r--lib/Transforms/Scalar/CMakeLists.txt2
-rw-r--r--lib/Transforms/Utils/CMakeLists.txt1
20 files changed, 4 insertions, 39 deletions
diff --git a/lib/Analysis/CMakeLists.txt b/lib/Analysis/CMakeLists.txt
index 80cae6c47a..e8c2573e4d 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 ca8b8436c1..98fb924daa 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 2ef115dbd2..a94b2ae47f 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 799988a4c8..15932c03a1 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 0c70a40265..25fce71a6a 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 8bd0c06507..49120588e3 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 fbf7f3ab6b..175ca66699 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 ddfca37d23..213dea9230 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 7f85bf8251..7b470eec2b 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 a3f60d2a44..2360ffdef4 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 a77802aec5..78767e52e1 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 32f4bc4052..f24c78a59d 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 5104f2b8bf..1f5fcbb6c8 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 7ffc5eb5f3..5f48bd00c6 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 684cadfb57..b789fa7ad5 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 880e56f052..e780934d51 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 65483e8fed..92bef3bb75 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 5b1ff3e23b..d070ccc0d6 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 b7598eace5..85fc87f001 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 61cbeb2bd3..b3c08f2b3d 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)