diff options
| author | Pete Cooper <peter_cooper@apple.com> | 2015-10-07 22:39:17 +0000 |
|---|---|---|
| committer | Pete Cooper <peter_cooper@apple.com> | 2015-10-07 22:39:17 +0000 |
| commit | e11c9de83d90b4025610fc631aeb4c977f4aaebe (patch) | |
| tree | f70b8b49a32f5ba501ef1186f99f93b02e7c7d40 /llvm/tools/llvm-nm | |
| parent | 69d25a8d7b26e8eb9cccbecff801b2d949a5b386 (diff) | |
| download | bcm5719-llvm-e11c9de83d90b4025610fc631aeb4c977f4aaebe.tar.gz bcm5719-llvm-e11c9de83d90b4025610fc631aeb4c977f4aaebe.zip | |
Stop linking all target libraries in llvm-nm and llvm-objdump.
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
Diffstat (limited to 'llvm/tools/llvm-nm')
| -rw-r--r-- | llvm/tools/llvm-nm/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/tools/llvm-nm/CMakeLists.txt b/llvm/tools/llvm-nm/CMakeLists.txt index 20293bb88f0..22b7bd3e35e 100644 --- a/llvm/tools/llvm-nm/CMakeLists.txt +++ b/llvm/tools/llvm-nm/CMakeLists.txt @@ -1,5 +1,7 @@ set(LLVM_LINK_COMPONENTS - ${LLVM_TARGETS_TO_BUILD} + AllTargetsAsmParsers + AllTargetsDescs + AllTargetsInfos Core Object Support |

