[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)
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

index 2080aea..7df8005 100644 (file)
@@ -34,6 +34,7 @@ add_lld_library(lldELF
   BitWriter
   Codegen
   Core
+  DebugInfoDWARF
   Demangle
   IPO
   Linker