From 6afa7a54be1a8b8d6f1ef6d5ad1fb26e3b80914b Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Fri, 1 Dec 2017 19:24:06 +0000 Subject: [PATCH] [libFuzzer] remove stale flags; NFC llvm-svn: 319572 --- compiler-rt/lib/fuzzer/FuzzerDriver.cpp | 1 - compiler-rt/lib/fuzzer/FuzzerFlags.def | 10 ---------- compiler-rt/lib/fuzzer/FuzzerLoop.cpp | 1 - compiler-rt/lib/fuzzer/FuzzerOptions.h | 1 - 4 files changed, 13 deletions(-) diff --git a/compiler-rt/lib/fuzzer/FuzzerDriver.cpp b/compiler-rt/lib/fuzzer/FuzzerDriver.cpp index 83f796d30df8..e43f581fcd8e 100644 --- a/compiler-rt/lib/fuzzer/FuzzerDriver.cpp +++ b/compiler-rt/lib/fuzzer/FuzzerDriver.cpp @@ -568,7 +568,6 @@ int FuzzerDriver(int *argc, char ***argv, UserCallback Callback) { Options.MutateDepth = Flags.mutate_depth; Options.ReduceDepth = Flags.reduce_depth; Options.UseCounters = Flags.use_counters; - Options.UseIndirCalls = Flags.use_indir_calls; Options.UseMemmem = Flags.use_memmem; Options.UseCmp = Flags.use_cmp; Options.UseValueProfile = Flags.use_value_profile; diff --git a/compiler-rt/lib/fuzzer/FuzzerFlags.def b/compiler-rt/lib/fuzzer/FuzzerFlags.def index 779e45e7560c..7326c3dfc7a4 100644 --- a/compiler-rt/lib/fuzzer/FuzzerFlags.def +++ b/compiler-rt/lib/fuzzer/FuzzerFlags.def @@ -66,7 +66,6 @@ FUZZER_FLAG_INT(cleanse_crash, 0, "If 1, tries to cleanse the provided" ) FUZZER_FLAG_INT(minimize_crash_internal_step, 0, "internal flag") FUZZER_FLAG_INT(use_counters, 1, "Use coverage counters") -FUZZER_FLAG_INT(use_indir_calls, 1, "Use indirect caller-callee counters") FUZZER_FLAG_INT(use_memmem, 1, "Use hints from intercepting memmem, strstr, etc") FUZZER_FLAG_INT(use_value_profile, 0, @@ -146,12 +145,3 @@ FUZZER_FLAG_STRING(use_equivalence_server, "Experimental") FUZZER_FLAG_INT(analyze_dict, 0, "Experimental") FUZZER_FLAG_INT(use_clang_coverage, 0, "Experimental") FUZZER_FLAG_INT(use_feature_frequency, 0, "Experimental/internal") - -FUZZER_DEPRECATED_FLAG(exit_on_first) -FUZZER_DEPRECATED_FLAG(save_minimized_corpus) -FUZZER_DEPRECATED_FLAG(sync_command) -FUZZER_DEPRECATED_FLAG(sync_timeout) -FUZZER_DEPRECATED_FLAG(test_single_input) -FUZZER_DEPRECATED_FLAG(drill) -FUZZER_DEPRECATED_FLAG(truncate_units) -FUZZER_DEPRECATED_FLAG(output_csv) diff --git a/compiler-rt/lib/fuzzer/FuzzerLoop.cpp b/compiler-rt/lib/fuzzer/FuzzerLoop.cpp index 51d37c3eeb6c..3cfcfad93b14 100644 --- a/compiler-rt/lib/fuzzer/FuzzerLoop.cpp +++ b/compiler-rt/lib/fuzzer/FuzzerLoop.cpp @@ -647,7 +647,6 @@ void Fuzzer::MutateAndTestOne() { bool FoundUniqFeatures = false; bool NewCov = RunOne(CurrentUnitData, Size, /*MayDeleteFile=*/true, &II, &FoundUniqFeatures); - // Printf("FUF[%d] %d\n", i, FoundUniqFeatures); TryDetectingAMemoryLeak(CurrentUnitData, Size, /*DuringInitialCorpusExecution*/ false); if (NewCov) { diff --git a/compiler-rt/lib/fuzzer/FuzzerOptions.h b/compiler-rt/lib/fuzzer/FuzzerOptions.h index 56e1dcd68db0..e0baf69a749c 100644 --- a/compiler-rt/lib/fuzzer/FuzzerOptions.h +++ b/compiler-rt/lib/fuzzer/FuzzerOptions.h @@ -28,7 +28,6 @@ struct FuzzingOptions { int MutateDepth = 5; bool ReduceDepth = false; bool UseCounters = false; - bool UseIndirCalls = true; bool UseMemmem = true; bool UseCmp = false; bool UseValueProfile = false;