]> granicus.if.org Git - llvm/commitdiff
Add missing library dependency to fix build break in llvm-lto2
authorHiroshi Inoue <inouehrs@jp.ibm.com>
Wed, 28 Jun 2017 06:14:30 +0000 (06:14 +0000)
committerHiroshi Inoue <inouehrs@jp.ibm.com>
Wed, 28 Jun 2017 06:14:30 +0000 (06:14 +0000)
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306507 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-lto2/CMakeLists.txt
tools/llvm-lto2/LLVMBuild.txt

index cdd97c9fef5c64840674fe2fbdf5d901170b891a..9be12d71ed793e18b670c4f7bb03be5dbc7c9d2b 100644 (file)
@@ -1,5 +1,6 @@
 set(LLVM_LINK_COMPONENTS
   ${LLVM_TARGETS_TO_BUILD}
+  BitReader
   Core
   Linker
   LTO
index 42b0b9e26ccada96147f78ee3ce4d52cbf38cccd..d51aa22906751dda8214513b8c7fd250cedd4dd3 100644 (file)
@@ -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