summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorHiroshi Inoue <inouehrs@jp.ibm.com>2017-06-28 06:14:30 +0000
committerHiroshi Inoue <inouehrs@jp.ibm.com>2017-06-28 06:14:30 +0000
commit4bcef51b0fac8882cdaef5adf762d9e75a07bc51 (patch)
tree88b005fcc1f8798d86059bc88255735f9566b2d5 /llvm
parent66e08e7781b80deabf6a7824b875ea3fcfcd515c (diff)
downloadbcm5719-llvm-4bcef51b0fac8882cdaef5adf762d9e75a07bc51.tar.gz
bcm5719-llvm-4bcef51b0fac8882cdaef5adf762d9e75a07bc51.zip
Add missing library dependency to fix build break in llvm-lto2
error message CMakeFiles/llvm-lto2.dir/llvm-lto2.cpp.o: In function `dumpSymtab(int, char**)': llvm-lto2.cpp:(.text._ZL10dumpSymtabiPPc+0x238): undefined reference to `llvm::getBitcodeFileContents(llvm::MemoryBufferRef)' collect2: error: ld returned 1 exit status llvm-svn: 306507
Diffstat (limited to 'llvm')
-rw-r--r--llvm/tools/llvm-lto2/CMakeLists.txt1
-rw-r--r--llvm/tools/llvm-lto2/LLVMBuild.txt2
2 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/llvm-lto2/CMakeLists.txt b/llvm/tools/llvm-lto2/CMakeLists.txt
index cdd97c9fef5..9be12d71ed7 100644
--- a/llvm/tools/llvm-lto2/CMakeLists.txt
+++ b/llvm/tools/llvm-lto2/CMakeLists.txt
@@ -1,5 +1,6 @@
set(LLVM_LINK_COMPONENTS
${LLVM_TARGETS_TO_BUILD}
+ BitReader
Core
Linker
LTO
diff --git a/llvm/tools/llvm-lto2/LLVMBuild.txt b/llvm/tools/llvm-lto2/LLVMBuild.txt
index 42b0b9e26cc..d51aa229067 100644
--- a/llvm/tools/llvm-lto2/LLVMBuild.txt
+++ b/llvm/tools/llvm-lto2/LLVMBuild.txt
@@ -19,4 +19,4 @@
type = Tool
name = llvm-lto2
parent = Tools
-required_libraries = Core Linker LTO MC Object Support all-targets
+required_libraries = BitReader Core Linker LTO MC Object Support all-targets
OpenPOWER on IntegriCloud