[ELF] Add DebugInfoDWARF dependency
authorGeorge Rimar <grimar@accesssoftek.com>
Fri, 21 Oct 2016 07:46:24 +0000 (07:46 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Fri, 21 Oct 2016 07:46:24 +0000 (07:46 +0000)
commit032fa65606e26b2e5ccf43e0ff91cf0c2abf370f
tree6131a411cc92d94573d38b8bff53003c9bccdf2f
parentbed04bf1df9d442f4a8e4d914d0dcd9155f2b931
[ELF] Add DebugInfoDWARF dependency

rL284708 introduces a link error when building with BUILD_SHARED_LIBS:

undefined reference to `llvm::DWARFContext::parseCompileUnits()'
undefined reference to `llvm::DWARFContextInMemory::DWARFContextInMemory(
                            llvm::object::ObjectFile const&,
                            llvm::LoadedObjectInfo const*)'
The functions are available in libDebugInfoDWARF, from llvm.

Patch by Visoiu Mistrih Francis

Differential revision: https://reviews.llvm.org/D25843

llvm-svn: 284810
lld/ELF/CMakeLists.txt