[RISCV] Support postRA vsetvl insertion pass (#70549)
[llvm-project.git] / llvm / tools / llvm-readobj / CMakeLists.txt
blob0051f87b3c1039fa9f4ba5e45282cb1633273d31
1 set(LLVM_LINK_COMPONENTS
2   BinaryFormat
3   DebugInfoCodeView
4   DebugInfoDWARF
5   Demangle
6   Object
7   Option
8   Support
9   TargetParser
10   )
12 set(LLVM_TARGET_DEFINITIONS Opts.td)
13 tablegen(LLVM Opts.inc -gen-opt-parser-defs)
14 add_public_tablegen_target(ReadobjOptsTableGen)
16 add_llvm_tool(llvm-readobj
17   ARMWinEHPrinter.cpp
18   COFFDumper.cpp
19   COFFImportDumper.cpp
20   ELFDumper.cpp
21   llvm-readobj.cpp
22   MachODumper.cpp
23   ObjDumper.cpp
24   WasmDumper.cpp
25   Win64EHDumper.cpp
26   WindowsResourceDumper.cpp
27   XCOFFDumper.cpp
28   DEPENDS
29   ReadobjOptsTableGen
30   GENERATE_DRIVER
31   )
33 setup_host_tool(llvm-readobj LLVM_READOBJ llvm_readobj_exe llvm_readobj_target)
35 add_llvm_tool_symlink(llvm-readelf llvm-readobj)
37 if(LLVM_INSTALL_BINUTILS_SYMLINKS)
38   add_llvm_tool_symlink(readelf llvm-readobj)
39 endif()