This relands e9a3d1a401 which was originally
missing linking LLVMSupport into LLMVFileCheck which broke the SHARED_LIBS build.
Original summary:
The actual FileCheck logic seems to be implemented in LLVMSupport. I don't see a
good reason for having FileCheck implemented there as it has a very specific use
while LLVMSupport is a dependency of pretty much every LLVM tool there is. In
fact, the only use of FileCheck I could find (outside the FileCheck tool and the
FileCheck unit test) is a single call in GISelMITest.h.
This moves the FileCheck logic to its own LLVMFileCheck library. This way only
FileCheck and the GlobalISelTests now have a dependency on this code.
Reviewed By: jhenderson
Differential Revision: https://reviews.llvm.org/D86344
9 lines
179 B
CMake
9 lines
179 B
CMake
add_llvm_component_library(LLVMFileCheck
|
|
FileCheck.cpp
|
|
|
|
ADDITIONAL_HEADER_DIRS
|
|
"${LLVM_MAIN_INCLUDE_DIR}/llvm/FileCheck"
|
|
)
|
|
|
|
target_link_libraries(LLVMFileCheck LLVMSupport)
|