diff options
| author | Kostya Serebryany <kcc@google.com> | 2015-08-06 19:19:55 +0000 |
|---|---|---|
| committer | Kostya Serebryany <kcc@google.com> | 2015-08-06 19:19:55 +0000 |
| commit | 242ca930e8f1ac6f4300b068d1a5c590a74714da (patch) | |
| tree | 1430919cc2991e2a9159b18f0de46b74764ae0bd /llvm/lib/Fuzzer/FuzzerInterface.cpp | |
| parent | 525d0bf0b99adfeccb5c64ea942e29b5c9a61b5a (diff) | |
| download | bcm5719-llvm-242ca930e8f1ac6f4300b068d1a5c590a74714da.tar.gz bcm5719-llvm-242ca930e8f1ac6f4300b068d1a5c590a74714da.zip | |
[libFuzzer] move the mutators to public interface so that custom mutators may reuse these functions directly
llvm-svn: 244250
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerInterface.cpp')
| -rw-r--r-- | llvm/lib/Fuzzer/FuzzerInterface.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerInterface.cpp b/llvm/lib/Fuzzer/FuzzerInterface.cpp index c7553f421fb..5df182ec595 100644 --- a/llvm/lib/Fuzzer/FuzzerInterface.cpp +++ b/llvm/lib/Fuzzer/FuzzerInterface.cpp @@ -29,15 +29,4 @@ UserSuppliedFuzzer::~UserSuppliedFuzzer() { delete Rand; } -size_t UserSuppliedFuzzer::BasicMutate(uint8_t *Data, size_t Size, - size_t MaxSize) { - return ::fuzzer::Mutate(Data, Size, MaxSize, *Rand); -} -size_t UserSuppliedFuzzer::BasicCrossOver(const uint8_t *Data1, size_t Size1, - const uint8_t *Data2, size_t Size2, - uint8_t *Out, size_t MaxOutSize) { - return ::fuzzer::CrossOver(Data1, Size1, Data2, Size2, Out, MaxOutSize, - *Rand); -} - } // namespace fuzzer. |

