diff options
author | Kostya Serebryany <kcc@google.com> | 2017-08-28 22:52:22 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2017-08-28 22:52:22 +0000 |
commit | ebae6acb2bfef45b621788fba5e98a384a2477d6 (patch) | |
tree | 50471d46b24f09105366a5f8bdfabfb402a73d37 /lib/fuzzer/FuzzerTracePC.h | |
parent | 1cca2c591777ea1905f4a38165fafd5d6cd1057c (diff) |
[libFuzzer] allow -print_funcs=N: N is the max number of new covered function printed
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@311945 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/fuzzer/FuzzerTracePC.h')
-rw-r--r-- | lib/fuzzer/FuzzerTracePC.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fuzzer/FuzzerTracePC.h b/lib/fuzzer/FuzzerTracePC.h index 9c23ef6b5..54172608d 100644 --- a/lib/fuzzer/FuzzerTracePC.h +++ b/lib/fuzzer/FuzzerTracePC.h @@ -82,7 +82,7 @@ class TracePC { void SetUseCounters(bool UC) { UseCounters = UC; } void SetUseValueProfile(bool VP) { UseValueProfile = VP; } void SetPrintNewPCs(bool P) { DoPrintNewPCs = P; } - void SetPrintNewFuncs(bool P) { DoPrintNewFuncs = P; } + void SetPrintNewFuncs(size_t P) { NumPrintNewFuncs = P; } void UpdateObservedPCs(); template <class Callback> void CollectFeatures(Callback CB) const; @@ -134,7 +134,7 @@ private: bool UseCounters = false; bool UseValueProfile = false; bool DoPrintNewPCs = false; - bool DoPrintNewFuncs = false; + size_t NumPrintNewFuncs = 0; struct Module { uint32_t *Start, *Stop; |