aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-03-26 21:56:56 +0000
committerEric Christopher <echristo@apple.com>2012-03-26 21:56:56 +0000
commitc4b2271d4aa5c98417d6582b4f0b69fbe5e61cb9 (patch)
tree7abfdfd3651ae8fa374f9d9a254bee444d555f42 /cmake
parent11641d308a560f5bdcd17e13c808e1abf66f5404 (diff)
Add InitializeNativeTargetDisassembler function.
Patch by Ojab. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153476 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rwxr-xr-xcmake/config-ix.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake
index f6eeea9ee6..57ae79a92f 100755
--- a/cmake/config-ix.cmake
+++ b/cmake/config-ix.cmake
@@ -340,6 +340,11 @@ else ()
if (EXISTS ${CMAKE_SOURCE_DIR}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/CMakeLists.txt)
set(LLVM_NATIVE_ASMPARSER LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser)
endif ()
+
+ # We don't have an disassembler for all architectures yet.
+ if (EXISTS ${CMAKE_SOURCE_DIR}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/CMakeLists.txt)
+ set(LLVM_NATIVE_DISASSEMBLER LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler)
+ endif ()
endif ()
if( MINGW )