summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/FuzzerInternal.h
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2016-02-13 06:24:18 +0000
committerKostya Serebryany <kcc@google.com>2016-02-13 06:24:18 +0000
commit1deb0498f520fc1afc4540c5fa73398caffaeede (patch)
tree8768a32b64f4025a53b719e8eb826a2b1588f1ed /llvm/lib/Fuzzer/FuzzerInternal.h
parent29c55dcbde10200ea507dda6fc0be1caf6f86e77 (diff)
downloadbcm5719-llvm-1deb0498f520fc1afc4540c5fa73398caffaeede.tar.gz
bcm5719-llvm-1deb0498f520fc1afc4540c5fa73398caffaeede.zip
[libFuzzer] don't require seed in fuzzer::Mutate, instead use the global Fuzzer object for fuzzer::Mutate. This makes custom mutators fast
llvm-svn: 260810
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerInternal.h')
-rw-r--r--llvm/lib/Fuzzer/FuzzerInternal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerInternal.h b/llvm/lib/Fuzzer/FuzzerInternal.h
index ded25da847d..466ef975fa2 100644
--- a/llvm/lib/Fuzzer/FuzzerInternal.h
+++ b/llvm/lib/Fuzzer/FuzzerInternal.h
@@ -322,6 +322,7 @@ public:
// Merge Corpora[1:] into Corpora[0].
void Merge(const std::vector<std::string> &Corpora);
+ MutationDispatcher &GetMD() { return MD; }
private:
void AlarmCallback();
OpenPOWER on IntegriCloud