mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 11:39:35 +00:00
b8a59c8aa5
Summary: The COFF linker and the ELF linker have long had similar but separate Error.h and Error.cpp files to implement error handling. This change introduces new error handling code in Common/ErrorHandler.h, changes the COFF and ELF linkers to use it, and removes the old, separate implementations. Reviewers: ruiu Reviewed By: ruiu Subscribers: smeenai, jyknight, emaste, sdardis, nemanjai, nhaehnle, mgorny, javed.absar, kbarton, fedor.sergeev, llvm-commits Differential Revision: https://reviews.llvm.org/D39259 llvm-svn: 316624
28 lines
384 B
CMake
28 lines
384 B
CMake
if(NOT LLD_BUILT_STANDALONE)
|
|
set(tablegen_deps intrinsics_gen)
|
|
endif()
|
|
|
|
add_lld_library(lldCommon
|
|
ErrorHandler.cpp
|
|
Reproduce.cpp
|
|
TargetOptionsCommandFlags.cpp
|
|
Threads.cpp
|
|
Version.cpp
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
${LLD_INCLUDE_DIR}/lld/Common
|
|
|
|
LINK_COMPONENTS
|
|
Codegen
|
|
MC
|
|
Option
|
|
Support
|
|
Target
|
|
|
|
LINK_LIBS
|
|
${LLVM_PTHREAD_LIB}
|
|
|
|
DEPENDS
|
|
${tablegen_deps}
|
|
)
|