Don't reach into the middle of TargetMachine and cache one of its ivars.
[oota-llvm.git] / lib / Target / CMakeLists.txt
index 459744116dc070f4f03089d9e6bd31198cfd7113..02ac493b42150ad380b6fbaf524a757792d18d2e 100644 (file)
@@ -1,18 +1,16 @@
 add_llvm_library(LLVMTarget
-  DarwinTargetAsmInfo.cpp
-  ELFTargetAsmInfo.cpp
-  SubtargetFeature.cpp
+  Mangler.cpp
   Target.cpp
-  TargetAsmInfo.cpp
-  TargetData.cpp
-  TargetELFWriterInfo.cpp
-  TargetFrameInfo.cpp
-  TargetInstrInfo.cpp
   TargetIntrinsicInfo.cpp
-  TargetMachOWriterInfo.cpp
+  TargetJITInfo.cpp
+  TargetLibraryInfo.cpp
+  TargetLoweringObjectFile.cpp
   TargetMachine.cpp
-  TargetRegisterInfo.cpp
-  TargetSubtarget.cpp
+  TargetMachineC.cpp
+  TargetSubtargetInfo.cpp
   )
 
-# TODO: Support other targets besides X86. See Makefile.
+foreach(t ${LLVM_TARGETS_TO_BUILD})
+  message(STATUS "Targeting ${t}")
+  add_subdirectory(${t})
+endforeach()