diff options
| author | Petr Hosek <phosek@chromium.org> | 2018-01-17 17:24:56 +0000 |
|---|---|---|
| committer | Petr Hosek <phosek@chromium.org> | 2018-01-17 17:24:56 +0000 |
| commit | 68bc4bd6e519ee8d82ee7a3882821b4a165662e1 (patch) | |
| tree | 7d5f37cf65acb9380089113cf36eac7eb6e95295 /compiler-rt/lib/fuzzer/FuzzerInterface.h | |
| parent | ef785694f203be238fa23dd8fa38fcad43ff2f9b (diff) | |
| download | bcm5719-llvm-68bc4bd6e519ee8d82ee7a3882821b4a165662e1.tar.gz bcm5719-llvm-68bc4bd6e519ee8d82ee7a3882821b4a165662e1.zip | |
Revert "[libFuzzer] Support using libc++"
This reverts commit r322604: test is failing for standalone compiler-rt.
llvm-svn: 322689
Diffstat (limited to 'compiler-rt/lib/fuzzer/FuzzerInterface.h')
| -rw-r--r-- | compiler-rt/lib/fuzzer/FuzzerInterface.h | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/compiler-rt/lib/fuzzer/FuzzerInterface.h b/compiler-rt/lib/fuzzer/FuzzerInterface.h index 0f7effb2ab6..c2c0a39843c 100644 --- a/compiler-rt/lib/fuzzer/FuzzerInterface.h +++ b/compiler-rt/lib/fuzzer/FuzzerInterface.h @@ -30,39 +30,35 @@ extern "C" { // Executes the code under test with [Data, Data+Size) as the input. // libFuzzer will invoke this function *many* times with different inputs. // Must return 0. -__attribute__((visibility("default"))) int -LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size); +int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size); // Optional user-provided initialization function. // If provided, this function will be called by libFuzzer once at startup. // It may read and modify argc/argv. // Must return 0. -__attribute__((visibility("default"))) int LLVMFuzzerInitialize(int *argc, - char ***argv); +int LLVMFuzzerInitialize(int *argc, char ***argv); // Optional user-provided custom mutator. // Mutates raw data in [Data, Data+Size) inplace. // Returns the new size, which is not greater than MaxSize. // Given the same Seed produces the same mutation. -__attribute__((visibility("default"))) size_t -LLVMFuzzerCustomMutator(uint8_t *Data, size_t Size, size_t MaxSize, - unsigned int Seed); +size_t LLVMFuzzerCustomMutator(uint8_t *Data, size_t Size, size_t MaxSize, + unsigned int Seed); // Optional user-provided custom cross-over function. // Combines pieces of Data1 & Data2 together into Out. // Returns the new size, which is not greater than MaxOutSize. // Should produce the same mutation given the same Seed. -__attribute__((visibility("default"))) size_t -LLVMFuzzerCustomCrossOver(const uint8_t *Data1, size_t Size1, - const uint8_t *Data2, size_t Size2, uint8_t *Out, - size_t MaxOutSize, unsigned int Seed); +size_t LLVMFuzzerCustomCrossOver(const uint8_t *Data1, size_t Size1, + const uint8_t *Data2, size_t Size2, + uint8_t *Out, size_t MaxOutSize, + unsigned int Seed); // Experimental, may go away in future. // libFuzzer-provided function to be used inside LLVMFuzzerCustomMutator. // Mutates raw data in [Data, Data+Size) inplace. // Returns the new size, which is not greater than MaxSize. -__attribute__((visibility("default"))) size_t -LLVMFuzzerMutate(uint8_t *Data, size_t Size, size_t MaxSize); +size_t LLVMFuzzerMutate(uint8_t *Data, size_t Size, size_t MaxSize); #ifdef __cplusplus } // extern "C" |

