Revert "[FuzzMutate] Split out FuzzerCLI library that doesn't depend on IR."

This reverts commit 1c5e85b3da.

It broke a lot of bots with a link error:
https://lab.llvm.org/buildbot/#/builders/171/builds/14222
https://lab.llvm.org/buildbot/#/builders/188/builds/13748
https://lab.llvm.org/buildbot/#/builders/109/builds/38127
This commit is contained in:
Aaron Ballman 2022-05-07 07:29:57 -04:00
parent 8614674b55
commit a1bb952e83
13 changed files with 11 additions and 27 deletions

View File

@ -1,5 +1,5 @@
set(LLVM_LINK_COMPONENTS
FuzzerCLI
FuzzMutate
Support
)

View File

@ -1,5 +1,5 @@
set(LLVM_LINK_COMPONENTS
FuzzerCLI
FuzzMutate
Support
)

View File

@ -1,4 +1,4 @@
set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} FuzzerCLI)
set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} FuzzMutate)
set(CXX_FLAGS_NOFUZZ ${CMAKE_CXX_FLAGS})
set(DUMMY_MAIN DummyClangFuzzer.cpp)
if(LLVM_LIB_FUZZING_ENGINE)

View File

@ -1,23 +1,9 @@
# Generic helper for fuzzer binaries.
# This should not depend on LLVM IR etc.
add_llvm_component_library(LLVMFuzzerCLI
FuzzerCLI.cpp
PARTIAL_SOURCES_INTENDED
ADDITIONAL_HEADER_DIRS
${LLVM_MAIN_INCLUDE_DIR}/llvm/FuzzMutate
LINK_COMPONENTS
Support
)
# Library for using LLVM IR together with fuzzers.
add_llvm_component_library(LLVMFuzzMutate
FuzzerCLI.cpp
IRMutator.cpp
OpDescriptor.cpp
Operations.cpp
RandomIRBuilder.cpp
PARTIAL_SOURCES_INTENDED
ADDITIONAL_HEADER_DIRS
${LLVM_MAIN_INCLUDE_DIR}/llvm/FuzzMutate

View File

@ -1,6 +1,6 @@
set(LLVM_LINK_COMPONENTS
Demangle
FuzzerCLI
FuzzMutate
Support
)

View File

@ -9,7 +9,6 @@ set(LLVM_LINK_COMPONENTS
BitWriter
CodeGen
Core
FuzzerCLI
FuzzMutate
IRReader
MC

View File

@ -1,6 +1,6 @@
set(LLVM_LINK_COMPONENTS
Demangle
FuzzerCLI
FuzzMutate
Support
)

View File

@ -1,6 +1,6 @@
set(LLVM_LINK_COMPONENTS
Demangle
FuzzerCLI
FuzzMutate
Support
)

View File

@ -14,7 +14,6 @@ set(LLVM_LINK_COMPONENTS
AggressiveInstCombine
InstCombine
Instrumentation
FuzzerCLI
FuzzMutate
MC
ObjCARCOpts

View File

@ -1,6 +1,6 @@
set(LLVM_LINK_COMPONENTS
Demangle
FuzzerCLI
FuzzMutate
Support
)

View File

@ -1,6 +1,6 @@
set(LLVM_LINK_COMPONENTS
Support
FuzzerCLI
FuzzMutate
)
add_llvm_fuzzer(llvm-special-case-list-fuzzer

View File

@ -1,6 +1,6 @@
set(LLVM_LINK_COMPONENTS
Support
FuzzerCLI
FuzzMutate
)
add_llvm_fuzzer(llvm-yaml-numeric-parser-fuzzer

View File

@ -1,5 +1,5 @@
set(LLVM_LINK_COMPONENTS
FuzzerCLI
FuzzMutate
Support
)
add_llvm_fuzzer(mlir-parser-fuzzer