mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
81f234a2c6
Before this patch, the diagnostic message is printed to `errs()` directly, which makes it difficult to use `FailedWithMessage()` in unit testing. In this patch, we add a custom error handler for YAMLParser, which helps collect diagnostic messages and make it easy to use `FailedWithMessage()` to check error messages. Reviewed By: jhenderson, MaskRay Differential Revision: https://reviews.llvm.org/D82630
15 lines
252 B
CMake
15 lines
252 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
Object
|
|
ObjectYAML
|
|
)
|
|
|
|
add_llvm_unittest(ObjectYAMLTests
|
|
DWARFYAMLTest.cpp
|
|
ELFYAMLTest.cpp
|
|
MinidumpYAMLTest.cpp
|
|
YAML2ObjTest.cpp
|
|
YAMLTest.cpp
|
|
)
|
|
|
|
target_link_libraries(ObjectYAMLTests PRIVATE LLVMTestingSupport)
|