mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
ad763ae648
them properly. Specifically, the disassembler clearly attempts to initialiaze all TargetInfo, MCTargeDesc, AsmParser, and Disassembler sublibraries of registered targets. This makes the CMakeLists accurately reflect this intent in the code. This should fix the last of the link errors that I have gotten reports of on OS X, but if anyone continues to see link errors, continue to pester me and I'll look into it. llvm-svn: 136603
31 lines
838 B
CMake
31 lines
838 B
CMake
add_llvm_library(LLVMMCDisassembler
|
|
Disassembler.cpp
|
|
EDDisassembler.cpp
|
|
EDInst.cpp
|
|
EDOperand.cpp
|
|
EDToken.cpp
|
|
)
|
|
|
|
add_llvm_library_dependencies(LLVMMCDisassembler
|
|
LLVMMC
|
|
LLVMMCParser
|
|
LLVMSupport
|
|
LLVMTarget
|
|
)
|
|
|
|
foreach(t ${LLVM_TARGETS_TO_BUILD})
|
|
set(td ${LLVM_MAIN_SRC_DIR}/lib/Target/${t})
|
|
if(EXISTS ${td}/TargetInfo/CMakeLists.txt)
|
|
add_llvm_library_dependencies(LLVMMCDisassembler "LLVM${t}Info")
|
|
endif()
|
|
if(EXISTS ${td}/MCTargetDesc/CMakeLists.txt)
|
|
add_llvm_library_dependencies(LLVMMCDisassembler "LLVM${t}Desc")
|
|
endif()
|
|
if(EXISTS ${td}/AsmParser/CMakeLists.txt)
|
|
add_llvm_library_dependencies(LLVMMCDisassembler "LLVM${t}AsmParser")
|
|
endif()
|
|
if(EXISTS ${td}/Disassembler/CMakeLists.txt)
|
|
add_llvm_library_dependencies(LLVMMCDisassembler "LLVM${t}Disassembler")
|
|
endif()
|
|
endforeach(t)
|