1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00

[libFuzzer] remove unneeded call

llvm-svn: 281014
This commit is contained in:
Kostya Serebryany 2016-09-09 01:57:38 +00:00
parent 3930ff6121
commit df4542584d
2 changed files with 0 additions and 9 deletions

View File

@ -486,7 +486,6 @@ private:
void DeathCallback();
void ResetEdgeCoverage();
void ResetCounters();
void PrepareCounters(Fuzzer::Coverage *C);
bool RecordMaxCoverage(Fuzzer::Coverage *C);

View File

@ -57,12 +57,6 @@ void Fuzzer::ResetEdgeCoverage() {
EF->__sanitizer_reset_coverage();
}
void Fuzzer::ResetCounters() {
if (Options.UseCounters) {
EF->__sanitizer_update_counter_bitset_and_clear_counters(0);
}
}
void Fuzzer::PrepareCounters(Fuzzer::Coverage *C) {
if (Options.UseCounters) {
size_t NumCounters = EF->__sanitizer_get_number_of_counters();
@ -432,8 +426,6 @@ bool Fuzzer::UpdateMaxCoverage() {
bool Fuzzer::RunOne(const uint8_t *Data, size_t Size) {
TotalNumberOfRuns++;
// TODO(aizatsky): this Reset call seems to be not needed.
ResetCounters();
ExecuteCallback(Data, Size);
bool Res = UpdateMaxCoverage();