Update CMake files for recent AsmPrinter->InstPrinter changes. Can someone who
authorJim Grosbach <grosbach@apple.com>
Sat, 2 Oct 2010 00:39:56 +0000 (00:39 +0000)
committerJim Grosbach <grosbach@apple.com>
Sat, 2 Oct 2010 00:39:56 +0000 (00:39 +0000)
is more familiar with CMake please review?

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115391 91177308-0d34-0410-b5e6-96231b3b80d8

CMakeLists.txt
lib/Target/MSP430/InstPrinter/CMakeLists.txt

index 8ad68a0457e5136bbaa62dcecf7782816bb4ac0a..7f3ec802df6a02c900427e940ccc4e66b16b6a02 100644 (file)
@@ -323,6 +323,10 @@ foreach(t ${LLVM_TARGETS_TO_BUILD})
     add_subdirectory(lib/Target/${t}/AsmPrinter)
     set(LLVM_ENUM_ASM_PRINTERS 
       "${LLVM_ENUM_ASM_PRINTERS}LLVM_ASM_PRINTER(${t})\n")
+  if( EXISTS ${LLVM_MAIN_SRC_DIR}/lib/Target/${t}/InstPrinter/CMakeLists.txt )
+    add_subdirectory(lib/Target/${t}/InstPrinter)
+    set(LLVM_ENUM_ASM_PRINTERS 
+      "${LLVM_ENUM_ASM_PRINTERS}LLVM_ASM_PRINTER(${t})\n")
   endif( EXISTS ${LLVM_MAIN_SRC_DIR}/lib/Target/${t}/AsmPrinter/CMakeLists.txt )
   if( EXISTS ${LLVM_MAIN_SRC_DIR}/lib/Target/${t}/AsmParser/CMakeLists.txt )
     add_subdirectory(lib/Target/${t}/AsmParser)
index 4b1f4e6ff269e1cf6b3c58546f9fd561bfb9b63e..f5458d59a8217170bc9d85aef35004779dbe1f7d 100644 (file)
@@ -1,8 +1,6 @@
 include_directories( ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. )
 
 add_llvm_library(LLVMMSP430AsmPrinter
-  MSP430AsmPrinter.cpp
   MSP430InstPrinter.cpp
-  MSP430MCInstLower.cpp
   )
 add_dependencies(LLVMMSP430AsmPrinter MSP430CodeGenTable_gen)