mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
41a5636b6f
We have Error.cpp/.h which contains some code for working with error codes. In fact we use Error/Expected<> almost everywhere already and we can get rid of these files. Note: a few places in the code used readobj specific error codes, e.g. `return readobj_error::unknown_symbol`. But these codes are never really used, i.e. the code checks the fact of a success/error call only. So I've changes them to `return inconvertibleErrorCode()` for now. It seems that these places probably should be converted to use `Error`/`Expected<>`. Differential revision: https://reviews.llvm.org/D86772
32 lines
547 B
CMake
32 lines
547 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
DebugInfoCodeView
|
|
DebugInfoDWARF
|
|
Demangle
|
|
Object
|
|
BinaryFormat
|
|
Support
|
|
DebugInfoCodeView
|
|
DebugInfoMSF
|
|
DebugInfoPDB
|
|
)
|
|
|
|
add_llvm_tool(llvm-readobj
|
|
ARMWinEHPrinter.cpp
|
|
COFFDumper.cpp
|
|
COFFImportDumper.cpp
|
|
ELFDumper.cpp
|
|
llvm-readobj.cpp
|
|
MachODumper.cpp
|
|
ObjDumper.cpp
|
|
WasmDumper.cpp
|
|
Win64EHDumper.cpp
|
|
WindowsResourceDumper.cpp
|
|
XCOFFDumper.cpp
|
|
)
|
|
|
|
add_llvm_tool_symlink(llvm-readelf llvm-readobj)
|
|
|
|
if(LLVM_INSTALL_BINUTILS_SYMLINKS)
|
|
add_llvm_tool_symlink(readelf llvm-readobj)
|
|
endif()
|