aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOscar Fuentes <ofv@wanadoo.es>2010-09-28 14:02:45 +0000
committerOscar Fuentes <ofv@wanadoo.es>2010-09-28 14:02:45 +0000
commit4dbb2dbf764498e6f03de0459b9c40fba5e608be (patch)
tree1fb6f4156fbdeab9dd77bbece2812fb628068267
parentb2c70cfc71f401ae7eae26b29ea081bf7e7b917f (diff)
Added library LLVMPIC16passes to CMake build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114952 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--CMakeLists.txt5
-rw-r--r--cmake/modules/LLVMLibDeps.cmake1
-rw-r--r--lib/Target/PIC16/PIC16Passes/CMakeLists.txt4
3 files changed, 10 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 164ed3a3f4..8ad68a0457 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -337,6 +337,11 @@ foreach(t ${LLVM_TARGETS_TO_BUILD})
set(CURRENT_LLVM_TARGET)
endforeach(t)
+# PIC16 contains an odd library:
+if( LLVM_TARGETS_TO_BUILD MATCHES ".*PIC16.*" )
+ add_subdirectory(lib/Target/PIC16/PIC16Passes)
+endif()
+
# Produce llvm/Config/AsmPrinters.def
configure_file(
${LLVM_MAIN_INCLUDE_DIR}/llvm/Config/AsmPrinters.def.in
diff --git a/cmake/modules/LLVMLibDeps.cmake b/cmake/modules/LLVMLibDeps.cmake
index 5bfb419980..82a0318791 100644
--- a/cmake/modules/LLVMLibDeps.cmake
+++ b/cmake/modules/LLVMLibDeps.cmake
@@ -45,6 +45,7 @@ set(MSVC_LIB_DEPS_LLVMMipsInfo LLVMSupport)
set(MSVC_LIB_DEPS_LLVMPIC16AsmPrinter LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMMC LLVMPIC16CodeGen LLVMPIC16Info LLVMSupport LLVMTarget)
set(MSVC_LIB_DEPS_LLVMPIC16CodeGen LLVMAnalysis LLVMCodeGen LLVMCore LLVMMC LLVMPIC16Info LLVMSelectionDAG LLVMSupport LLVMTarget)
set(MSVC_LIB_DEPS_LLVMPIC16Info LLVMSupport)
+set(MSVC_LIB_DEPS_LLVMPIC16passes LLVMCore LLVMSupport LLVMSystem LLVMTransformUtils LLVMipa)
set(MSVC_LIB_DEPS_LLVMPTXAsmPrinter LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMPTXCodeGen LLVMPTXInfo LLVMSupport)
set(MSVC_LIB_DEPS_LLVMPTXCodeGen LLVMCodeGen LLVMCore LLVMMC LLVMPTXInfo LLVMSelectionDAG LLVMSupport LLVMTarget)
set(MSVC_LIB_DEPS_LLVMPTXInfo LLVMSupport)
diff --git a/lib/Target/PIC16/PIC16Passes/CMakeLists.txt b/lib/Target/PIC16/PIC16Passes/CMakeLists.txt
new file mode 100644
index 0000000000..51f3a5e7dc
--- /dev/null
+++ b/lib/Target/PIC16/PIC16Passes/CMakeLists.txt
@@ -0,0 +1,4 @@
+add_llvm_library(LLVMPIC16passes
+ PIC16Cloner.cpp
+ PIC16Overlay.cpp
+ )