1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/unittests/Object/CMakeLists.txt
Georgii Rymar d2ae6e2eba [llvm-readobj/libObject] - Allow dumping objects that has a broken SHT_SYMTAB_SHNDX section.
Currently it is impossible to create an instance of ELFObjectFile when the
SHT_SYMTAB_SHNDX can't be read. We error out when fail to parse the
SHT_SYMTAB_SHNDX section in the factory method.

This change delays reading of the SHT_SYMTAB_SHNDX section entries,
with it llvm-readobj is now able to work with such inputs.

Differential revision: https://reviews.llvm.org/D89379
2020-11-03 11:30:28 +03:00

20 lines
349 B
CMake

set(LLVM_LINK_COMPONENTS
BinaryFormat
Object
ObjectYAML
)
add_llvm_unittest(ObjectTests
ArchiveTest.cpp
ELFObjectFileTest.cpp
ELFTypesTest.cpp
ELFTest.cpp
MinidumpTest.cpp
ObjectFileTest.cpp
SymbolSizeTest.cpp
SymbolicFileTest.cpp
XCOFFObjectFileTest.cpp
)
target_link_libraries(ObjectTests PRIVATE LLVMTestingSupport)