set(LLVM_LINK_COMPONENTS
  AllTargetsAsmParsers
  AllTargetsDescs
  AllTargetsInfos
  BinaryFormat
  Core
  Demangle
  Object
  Support
  )

add_llvm_tool(llvm-nm
  llvm-nm.cpp

  DEPENDS
  intrinsics_gen
  )

if(LLVM_INSTALL_BINUTILS_SYMLINKS)
  add_llvm_tool_symlink(nm llvm-nm)
endif()

set(LLVM_LINK_COMPONENTS
  AllTargetsAsmParsers
  AllTargetsDescs
  AllTargetsInfos
  BinaryFormat
  Core
  Demangle
  Object
  Support
  TextAPI
  )

add_llvm_tool(llvm-nm
  llvm-nm.cpp

  DEPENDS
  intrinsics_gen
  )

if(LLVM_INSTALL_BINUTILS_SYMLINKS)
  add_llvm_tool_symlink(nm llvm-nm)
endif()

Fix -DBUILD_SHARED_LIBS=ON builds after D66160/r371576
[llvm-nm] Fix -DBUILD_SHARED_LIBS=ON builds after D66160/r371576

git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@371585 91177308-0d34-0410-b5e6-96231b3b80d8
