diff options
author | Kostya Serebryany <kcc@google.com> | 2016-09-23 00:46:18 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2016-09-23 00:46:18 +0000 |
commit | ab73c6924f56f47ddf7ca41de467e5d2b255fe30 (patch) | |
tree | 2f0e7b676cca69155ebcda35cf0ccc2cdfb55bfa /llvm/lib/Fuzzer/FuzzerLoop.cpp | |
parent | e190cd28340360a4526754185d22c3972878be79 (diff) | |
download | bcm5719-llvm-ab73c6924f56f47ddf7ca41de467e5d2b255fe30.tar.gz bcm5719-llvm-ab73c6924f56f47ddf7ca41de467e5d2b255fe30.zip |
[libFuzzer] move value profiling logic into TracePC
llvm-svn: 282219
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerLoop.cpp')
-rw-r--r-- | llvm/lib/Fuzzer/FuzzerLoop.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerLoop.cpp b/llvm/lib/Fuzzer/FuzzerLoop.cpp index 781266a4d98..1d714cadd48 100644 --- a/llvm/lib/Fuzzer/FuzzerLoop.cpp +++ b/llvm/lib/Fuzzer/FuzzerLoop.cpp @@ -115,7 +115,7 @@ bool Fuzzer::RecordMaxCoverage(Fuzzer::Coverage *C) { if (TPC.UpdateCounterMap(&C->TPCMap)) Res = true; - if (VPMapMergeFromCurrent(C->VPMap)) + if (TPC.UpdateValueProfileMap(&C->VPMap)) Res = true; if (EF->__sanitizer_get_coverage_pc_buffer_pos) { @@ -168,6 +168,7 @@ Fuzzer::Fuzzer(UserCallback CB, InputCorpus &Corpus, MutationDispatcher &MD, if (Options.DetectLeaks && EF->__sanitizer_install_malloc_and_free_hooks) EF->__sanitizer_install_malloc_and_free_hooks(MallocHook, FreeHook); TPC.SetUseCounters(Options.UseCounters); + TPC.SetUseValueProfile(Options.UseValueProfile); if (Options.PrintNewCovPcs) { PcBufferLen = 1 << 24; |