From c3aaa9b38e1680c934cb16a3f65ee8e3a2cae693 Mon Sep 17 00:00:00 2001 From: Roman Lebedev Date: Tue, 24 Apr 2018 08:40:37 +0000 Subject: [PATCH] Link to AggressiveInstCombine in a few places. Unbreaks build for me. /usr/local/bin/ld.lld: error: undefined symbol: llvm::createAggressiveInstCombinerPass() >>> referenced by cc1_main.cpp >>> tools/clang/tools/driver/CMakeFiles/clang.dir/cc1_main.cpp.o:(_GLOBAL__sub_I_cc1_main.cpp) And so on The bot coverage is clearly missing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@330693 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/bugpoint/CMakeLists.txt | 1 + tools/llvm-opt-fuzzer/CMakeLists.txt | 1 + unittests/ExecutionEngine/MCJIT/CMakeLists.txt | 1 + 3 files changed, 3 insertions(+) diff --git a/tools/bugpoint/CMakeLists.txt b/tools/bugpoint/CMakeLists.txt index 72c597379c8..654ecc496a9 100644 --- a/tools/bugpoint/CMakeLists.txt +++ b/tools/bugpoint/CMakeLists.txt @@ -6,6 +6,7 @@ set(LLVM_LINK_COMPONENTS Core IPO IRReader + AggressiveInstCombine InstCombine Instrumentation Linker diff --git a/tools/llvm-opt-fuzzer/CMakeLists.txt b/tools/llvm-opt-fuzzer/CMakeLists.txt index d2fb07f96fc..39f94a681e2 100644 --- a/tools/llvm-opt-fuzzer/CMakeLists.txt +++ b/tools/llvm-opt-fuzzer/CMakeLists.txt @@ -8,6 +8,7 @@ set(LLVM_LINK_COMPONENTS Coroutines IPO IRReader + AggressiveInstCombine InstCombine Instrumentation FuzzMutate diff --git a/unittests/ExecutionEngine/MCJIT/CMakeLists.txt b/unittests/ExecutionEngine/MCJIT/CMakeLists.txt index e29787f8f42..b5f8a14c41c 100644 --- a/unittests/ExecutionEngine/MCJIT/CMakeLists.txt +++ b/unittests/ExecutionEngine/MCJIT/CMakeLists.txt @@ -3,6 +3,7 @@ set(LLVM_LINK_COMPONENTS Core ExecutionEngine IPO + InstCombine MC MCJIT RuntimeDyld -- 2.11.0