git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281814
91177308-0d34-0410-b5e6-
96231b3b80d8
NumNewPCs = 0;
CounterMap.Reset();
TotalCoverageMap.Reset();
+ ResetGuards();
}
void PrintModuleInfo();
size_t NumNewPCs = 0;
void AddNewPC(uintptr_t PC) { NewPCs[(NumNewPCs++) % kMaxNewPCs] = PC; }
+ void ResetGuards();
+
struct Module {
uint64_t *Start, *Stop;
};
}
if (Counter < 255)
Value++;
+ else
+ Value |= kBit63;
} else {
Value |= kBit63;
TotalCoverage++;
Printf("\n");
}
+void TracePC::ResetGuards() {
+ for (size_t M = 0; M < NumModules; M++)
+ for (uint64_t *X = Modules[M].Start; X < Modules[M].Stop; X++)
+ *X = (*X >> 32) << 32;
+}
+
void TracePC::FinalizeTrace() {
if (UseCounters && TotalCoverage) {
for (size_t M = 0; M < NumModules; M++) {
set_target_properties(LLVMFuzzer-DSO2 PROPERTIES LIBRARY_OUTPUT_DIRECTORY
"${CMAKE_BINARY_DIR}/lib/Fuzzer/lib")
-set(TestBinaries ${TestBinaries} LLVMFuzzer-DSOTest)
+set(TestBinaries ${TestBinaries} LLVMFuzzer-DSOTest PARENT_SCOPE)