Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / tools / llvm-nm / CMakeLists.txt
blob5191e138d1c0bbb4e66a22be5adc03ac23a64b7f
1 set(LLVM_LINK_COMPONENTS
2   AllTargetsAsmParsers
3   AllTargetsDescs
4   AllTargetsInfos
5   BinaryFormat
6   Core
7   Demangle
8   Object
9   Option
10   Support
11   Symbolize
12   TargetParser
13   TextAPI
14   )
16 set(LLVM_TARGET_DEFINITIONS Opts.td)
17 tablegen(LLVM Opts.inc -gen-opt-parser-defs)
18 add_public_tablegen_target(NmOptsTableGen)
20 add_llvm_tool(llvm-nm
21   llvm-nm.cpp
23   DEPENDS
24   NmOptsTableGen
25   intrinsics_gen
26   GENERATE_DRIVER
27   )
29 setup_host_tool(llvm-nm LLVM_NM llvm_nm_exe llvm_nm_target)
31 if(LLVM_INSTALL_BINUTILS_SYMLINKS)
32   add_llvm_tool_symlink(nm llvm-nm)
33 endif()