Add ARM Disassembler to the CMake build.
authorOscar Fuentes <ofv@wanadoo.es>
Tue, 28 Sep 2010 11:48:19 +0000 (11:48 +0000)
committerOscar Fuentes <ofv@wanadoo.es>
Tue, 28 Sep 2010 11:48:19 +0000 (11:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114949 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/CMakeLists.txt
lib/Target/ARM/Disassembler/ARMDisassembler.cpp
lib/Target/ARM/Disassembler/CMakeLists.txt [new file with mode: 0644]

index 0b48845649592e5404a6fe0d6dbe31c1e4439b2b..8bd0c0650727845b887db138c649ba0e6e0e9ceb 100644 (file)
@@ -13,6 +13,7 @@ tablegen(ARMGenFastISel.inc -gen-fast-isel)
 tablegen(ARMGenCallingConv.inc -gen-callingconv)
 tablegen(ARMGenSubtarget.inc -gen-subtarget)
 tablegen(ARMGenEDInfo.inc -gen-enhanced-disassembly-info)
+tablegen(ARMGenDecoderTables.inc -gen-arm-decoder)
 
 add_llvm_target(ARMCodeGen
   ARMAsmPrinter.cpp
index e22028985b46c06a440ea0a04917daa3a6111331..ef71da65bab42d1f72d6078702c7a0f8ba20d586 100644 (file)
@@ -39,9 +39,9 @@
 /// o static uint16_t decodeThumbInstruction(field_t insn) - the decoding
 /// function for a Thumb instruction.
 ///
-#include "../ARMGenDecoderTables.inc"
+#include "ARMGenDecoderTables.inc"
 
-#include "../ARMGenEDInfo.inc"
+#include "ARMGenEDInfo.inc"
 
 using namespace llvm;
 
diff --git a/lib/Target/ARM/Disassembler/CMakeLists.txt b/lib/Target/ARM/Disassembler/CMakeLists.txt
new file mode 100644 (file)
index 0000000..c9680f8
--- /dev/null
@@ -0,0 +1,8 @@
+include_directories( ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. )
+
+add_llvm_library(LLVMARMDisassembler
+  ARMDisassembler.cpp
+  ARMDisassemblerCore.cpp
+  )
+
+add_dependencies(LLVMARMDisassembler ARMCodeGenTable_gen)