[libFuzzer] Create single template for visiting Inline8bitCounters
authorMax Moroz <mmoroz@chromium.org>
Wed, 18 Jul 2018 17:03:27 +0000 (17:03 +0000)
committerMax Moroz <mmoroz@chromium.org>
Wed, 18 Jul 2018 17:03:27 +0000 (17:03 +0000)
commit42b54e81178a03ba22555f3db962538791c4bb9d
tree5995f757b033ac1909cc483fdf647340ec0a1cf7
parent10ef7d20b2a8b182d3c32acba88d779767a99261
[libFuzzer] Create single template for visiting Inline8bitCounters

Summary:
Created IterateInline8bitCounters, a single template for visiting  Inline8bitCounters (nested for loop)
Made InitializeUnstableCounters and UpdateUnstableCounters both send a lambda to IterateInline8bitCounters.

Patch by Kyungtak Woo (@kevinwkt).

Reviewers: Dor1s, metzman, kcc, morehouse

Reviewed By: metzman, morehouse

Subscribers: delcypher, llvm-commits, #sanitizers

Differential Revision: https://reviews.llvm.org/D49453

llvm-svn: 337403
compiler-rt/lib/fuzzer/FuzzerTracePC.cpp
compiler-rt/lib/fuzzer/FuzzerTracePC.h