From 6c2c7c89da740aa694d1c3ef53d36cae86a91b01 Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Thu, 26 Jan 2017 01:45:54 +0000 Subject: [PATCH] [libFuzzer] remove a bit of stale code git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293129 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Fuzzer/FuzzerInternal.h | 2 -- lib/Fuzzer/FuzzerLoop.cpp | 4 ---- 2 files changed, 6 deletions(-) diff --git a/lib/Fuzzer/FuzzerInternal.h b/lib/Fuzzer/FuzzerInternal.h index 543a5cfcebd0..31c6585a91d2 100644 --- a/lib/Fuzzer/FuzzerInternal.h +++ b/lib/Fuzzer/FuzzerInternal.h @@ -41,7 +41,6 @@ class Fuzzer { CallerCalleeCoverage = 0; CounterBitmapBits = 0; CounterBitmap.clear(); - VPMap.Reset(); } size_t BlockCoverage; @@ -49,7 +48,6 @@ class Fuzzer { // Precalculated number of bits in CounterBitmap. size_t CounterBitmapBits; std::vector CounterBitmap; - ValueBitMap VPMap; }; Fuzzer(UserCallback CB, InputCorpus &Corpus, MutationDispatcher &MD, diff --git a/lib/Fuzzer/FuzzerLoop.cpp b/lib/Fuzzer/FuzzerLoop.cpp index 861ab13e686f..8f4161ebe980 100644 --- a/lib/Fuzzer/FuzzerLoop.cpp +++ b/lib/Fuzzer/FuzzerLoop.cpp @@ -354,8 +354,6 @@ void Fuzzer::PrintStats(const char *Where, const char *End, size_t Units) { Printf("#%zd\t%s", TotalNumberOfRuns, Where); if (MaxCoverage.BlockCoverage) Printf(" cov: %zd", MaxCoverage.BlockCoverage); - if (size_t N = MaxCoverage.VPMap.GetNumBitsSinceLastMerge()) - Printf(" vp: %zd", N); if (size_t N = TPC.GetTotalPCCoverage()) Printf(" cov: %zd", N); if (auto TB = MaxCoverage.CounterBitmapBits) @@ -509,8 +507,6 @@ size_t Fuzzer::RunOne(const uint8_t *Data, size_t Size) { Res = NumFeatures; if (!TPC.UsingTracePcGuard()) { - if (TPC.UpdateValueProfileMap(&MaxCoverage.VPMap)) - Res = 1; if (!Res && RecordMaxCoverage(&MaxCoverage)) Res = 1; }