diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-17 20:42:00 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-17 20:42:00 +0000 |
commit | 092a9dda2d13918a6410db26f41c7b5aa97ff989 (patch) | |
tree | 2dcdd3c50dd465a3e1068c713ed64e39781dea35 /CMakeLists.txt | |
parent | 234f6893a2bb752479e51c943e1eb604f2f48429 (diff) | |
download | llvm-092a9dda2d13918a6410db26f41c7b5aa97ff989.tar.gz llvm-092a9dda2d13918a6410db26f41c7b5aa97ff989.tar.bz2 llvm-092a9dda2d13918a6410db26f41c7b5aa97ff989.tar.xz |
Sketch support for target specific assembly parser.
- Not fully enabled yet, need a configure regeneration.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76230 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d97ac8d8f6..bacb07a33e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -257,6 +257,7 @@ add_subdirectory(lib/Analysis/IPA) add_subdirectory(lib/MC) set(LLVM_ENUM_ASM_PRINTERS "") + set(LLVM_ENUM_ASM_PARSERS "") foreach(t ${LLVM_TARGETS_TO_BUILD}) message(STATUS "Targeting ${t}") add_subdirectory(lib/Target/${t}) @@ -266,6 +267,11 @@ add_subdirectory(lib/MC) 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) + set(LLVM_ENUM_ASM_PARSERS + "${LLVM_ENUM_ASM_PARSERS}LLVM_ASM_PARSER(${t})\n") + endif( EXISTS ${LLVM_MAIN_SRC_DIR}/lib/Target/${t}/AsmParser/CMakeLists.txt ) endforeach(t) # Produce llvm/Config/AsmPrinters.def @@ -274,6 +280,12 @@ configure_file( ${LLVM_BINARY_DIR}/include/llvm/Config/AsmPrinters.def ) +# Produce llvm/Config/AsmParsers.def +configure_file( + ${LLVM_MAIN_INCLUDE_DIR}/llvm/Config/AsmParsers.def.in + ${LLVM_BINARY_DIR}/include/llvm/Config/AsmParsers.def + ) + add_subdirectory(lib/ExecutionEngine) add_subdirectory(lib/ExecutionEngine/Interpreter) add_subdirectory(lib/ExecutionEngine/JIT) |