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

This reverts commit a1bb952e83.

I'd somehow missed updating llvm-yaml-parser-fuzzer, now fixed.
This commit is contained in:
Sam McCall 2022-05-07 13:44:42 +02:00
parent a1bb952e83
commit e571e1a6c3
14 changed files with 28 additions and 12 deletions

View File

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

View File

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

View File

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

View File

@ -1,9 +1,23 @@
add_llvm_component_library(LLVMFuzzMutate
# 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
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
FuzzMutate
FuzzerCLI
Support
)

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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