OSDN Git Service

Stop linking all target libraries in llvm-nm and llvm-objdump.
authorPete Cooper <peter_cooper@apple.com>
Wed, 7 Oct 2015 22:39:17 +0000 (22:39 +0000)
committerPete Cooper <peter_cooper@apple.com>
Wed, 7 Oct 2015 22:39:17 +0000 (22:39 +0000)
commite6fb099e982239ba55af9006e8647687416aa34e
tree8f75fbc6316b188ec8955f1a7a68799ad782f529
parentbe06dbe64749242c4b53ced14e4f0b6ed78c90d9
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249632 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-nm/CMakeLists.txt
tools/llvm-objdump/CMakeLists.txt
tools/llvm-objdump/llvm-objdump.cpp