summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/FuzzerIOWindows.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerIOWindows.cpp')
-rw-r--r--llvm/lib/Fuzzer/FuzzerIOWindows.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerIOWindows.cpp b/llvm/lib/Fuzzer/FuzzerIOWindows.cpp
index 056f0721a33..e2a67973386 100644
--- a/llvm/lib/Fuzzer/FuzzerIOWindows.cpp
+++ b/llvm/lib/Fuzzer/FuzzerIOWindows.cpp
@@ -279,6 +279,16 @@ std::string DirName(const std::string &FileName) {
std::string TmpDir() { return "TODO: implement TmpDir"; }
+bool IsInterestingCoverageFile(const std::string &FileName) {
+ if (FileName.find("Program Files") != std::string::npos)
+ return false;
+ if (FileName.find("compiler-rt\\lib\\") != std::string::npos)
+ return false; // sanitizer internal.
+ if (FileName == "<null>")
+ return false;
+ return true;
+}
+
} // namespace fuzzer
#endif // LIBFUZZER_WINDOWS
OpenPOWER on IntegriCloud