summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/FuzzerInternal.h
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2016-09-21 02:05:39 +0000
committerKostya Serebryany <kcc@google.com>2016-09-21 02:05:39 +0000
commit556894fb10b7f8b5fd9690954588be97ce593845 (patch)
tree040063db5f7e2f3bc1dc0664e0268d50e979b32c /llvm/lib/Fuzzer/FuzzerInternal.h
parente18258dc1cf2f42d911730a1745e6e09abd2186c (diff)
downloadbcm5719-llvm-556894fb10b7f8b5fd9690954588be97ce593845.tar.gz
bcm5719-llvm-556894fb10b7f8b5fd9690954588be97ce593845.zip
[libFuzzer] more refactoring; NFC
llvm-svn: 282047
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerInternal.h')
-rw-r--r--llvm/lib/Fuzzer/FuzzerInternal.h39
1 files changed, 1 insertions, 38 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerInternal.h b/llvm/lib/Fuzzer/FuzzerInternal.h
index 7b774d303ab..aab01692f09 100644
--- a/llvm/lib/Fuzzer/FuzzerInternal.h
+++ b/llvm/lib/Fuzzer/FuzzerInternal.h
@@ -14,7 +14,6 @@
#include <algorithm>
#include <atomic>
-#include <cassert>
#include <chrono>
#include <climits>
#include <cstdlib>
@@ -24,6 +23,7 @@
#include "FuzzerDefs.h"
#include "FuzzerExtFunctions.h"
#include "FuzzerInterface.h"
+#include "FuzzerOptions.h"
#include "FuzzerValueBitMap.h"
#include "FuzzerCorpus.h" // TODO(kcc): remove this from here.
@@ -35,40 +35,6 @@ using namespace std::chrono;
void EnableValueProfile();
size_t VPMapMergeFromCurrent(ValueBitMap &M);
-struct FuzzingOptions {
- int Verbosity = 1;
- size_t MaxLen = 0;
- int UnitTimeoutSec = 300;
- int TimeoutExitCode = 77;
- int ErrorExitCode = 77;
- int MaxTotalTimeSec = 0;
- int RssLimitMb = 0;
- bool DoCrossOver = true;
- int MutateDepth = 5;
- bool UseCounters = false;
- bool UseIndirCalls = true;
- bool UseMemcmp = true;
- bool UseMemmem = true;
- bool UseFullCoverageSet = false;
- bool Reload = true;
- bool ShuffleAtStartUp = true;
- bool PreferSmall = true;
- size_t MaxNumberOfRuns = ULONG_MAX;
- int ReportSlowUnits = 10;
- bool OnlyASCII = false;
- std::string OutputCorpus;
- std::string ArtifactPrefix = "./";
- std::string ExactArtifactPath;
- bool SaveArtifacts = true;
- bool PrintNEW = true; // Print a status line when new units are found;
- bool OutputCSV = false;
- bool PrintNewCovPcs = false;
- bool PrintFinalStats = false;
- bool PrintCoverage = false;
- bool DetectLeaks = true;
- bool PruneCorpus = true;
-};
-
class Fuzzer {
public:
@@ -226,9 +192,6 @@ private:
bool InMergeMode = false;
};
-// Global interface to functions that may or may not be available.
-extern ExternalFunctions *EF;
-
}; // namespace fuzzer
#endif // LLVM_FUZZER_INTERNAL_H
OpenPOWER on IntegriCloud