[x86] Replace the long spelling of getting a bitcast with the *much*
[oota-llvm.git] / lib / Target / CMakeLists.txt
index 459744116dc070f4f03089d9e6bd31198cfd7113..1805437b12f71575ac5579e47d3a1276bfac4fbc 100644 (file)
@@ -1,18 +1,18 @@
+list(APPEND LLVM_COMMON_DEPENDS intrinsics_gen)
+
 add_llvm_library(LLVMTarget
-  DarwinTargetAsmInfo.cpp
-  ELFTargetAsmInfo.cpp
-  SubtargetFeature.cpp
   Target.cpp
-  TargetAsmInfo.cpp
-  TargetData.cpp
-  TargetELFWriterInfo.cpp
-  TargetFrameInfo.cpp
-  TargetInstrInfo.cpp
   TargetIntrinsicInfo.cpp
-  TargetMachOWriterInfo.cpp
+  TargetLoweringObjectFile.cpp
   TargetMachine.cpp
-  TargetRegisterInfo.cpp
-  TargetSubtarget.cpp
+  TargetMachineC.cpp
+  TargetSubtargetInfo.cpp
+
+  ADDITIONAL_HEADER_DIRS
+  ${LLVM_MAIN_INCLUDE_DIR}/llvm/Target
   )
 
-# TODO: Support other targets besides X86. See Makefile.
+foreach(t ${LLVM_TARGETS_TO_BUILD})
+  message(STATUS "Targeting ${t}")
+  add_subdirectory(${t})
+endforeach()