mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
c0f6f791b4
llvm-nm only needs the target to parse module level assembly in bitcode. It doesn't need a disassembler or codegen. llvm-objdump needs to be able to disassemble a file, but doesn't need asm parsers or codegen. This reduces the sizes of these tools by a few MB each, depending on how many backends are linked in. llvm-svn: 249632
20 lines
279 B
CMake
20 lines
279 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
AllTargetsAsmPrinters
|
|
AllTargetsDescs
|
|
AllTargetsDisassemblers
|
|
AllTargetsInfos
|
|
CodeGen
|
|
DebugInfoDWARF
|
|
MC
|
|
MCDisassembler
|
|
Object
|
|
Support
|
|
)
|
|
|
|
add_llvm_tool(llvm-objdump
|
|
llvm-objdump.cpp
|
|
COFFDump.cpp
|
|
ELFDump.cpp
|
|
MachODump.cpp
|
|
)
|