summaryrefslogtreecommitdiff
path: root/lib/fuzzer/FuzzerTracePC.h
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2018-05-11 01:17:52 +0000
committerKostya Serebryany <kcc@google.com>2018-05-11 01:17:52 +0000
commitcb2d71ce010a8171c48fccbf48182ed54d8d75a0 (patch)
treee6e6599f2193c9b0e5190f669a84201caa40de2a /lib/fuzzer/FuzzerTracePC.h
parent782833e7099571a19d78cfb3f82205d8a86bca30 (diff)
[libFuzzer] refactor the implementation of -print_coverage
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@332073 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/fuzzer/FuzzerTracePC.h')
-rw-r--r--lib/fuzzer/FuzzerTracePC.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/fuzzer/FuzzerTracePC.h b/lib/fuzzer/FuzzerTracePC.h
index 27ff47cd7..d68da76b2 100644
--- a/lib/fuzzer/FuzzerTracePC.h
+++ b/lib/fuzzer/FuzzerTracePC.h
@@ -103,6 +103,9 @@ class TracePC {
void PrintCoverage();
+ template<class CallBack>
+ void IterateCoveredFunctions(CallBack CB);
+
void AddValueForMemcmp(void *caller_pc, const void *s1, const void *s2,
size_t n, bool StopAtZero);