aboutsummaryrefslogtreecommitdiff
path: root/instrumentation/SanitizerCoveragePCGUARD.so.cc
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-11-02 13:53:27 +0100
committervan Hauser <vh@thc.org>2020-11-02 13:53:27 +0100
commite24f8ba4b086ea72cfeeb008a4afb9725d1de1bb (patch)
treece5d2f103572cbd6897b1fb9d45e88a9714a5d24 /instrumentation/SanitizerCoveragePCGUARD.so.cc
parent52512aa0af33a4618649e30b99935620974080dd (diff)
downloadAFLplusplus-e24f8ba4b086ea72cfeeb008a4afb9725d1de1bb.tar.gz
fix SancovPCGUARD for 10.0.0
Diffstat (limited to 'instrumentation/SanitizerCoveragePCGUARD.so.cc')
-rw-r--r--instrumentation/SanitizerCoveragePCGUARD.so.cc28
1 files changed, 20 insertions, 8 deletions
diff --git a/instrumentation/SanitizerCoveragePCGUARD.so.cc b/instrumentation/SanitizerCoveragePCGUARD.so.cc
index 124679f5..b8e3570a 100644
--- a/instrumentation/SanitizerCoveragePCGUARD.so.cc
+++ b/instrumentation/SanitizerCoveragePCGUARD.so.cc
@@ -68,11 +68,17 @@ class ModuleSanitizerCoveragePass
: Options(Options) {
if (AllowlistFiles.size() > 0)
- Allowlist = SpecialCaseList::createOrDie(AllowlistFiles,
- *vfs::getRealFileSystem());
+ Allowlist = SpecialCaseList::createOrDie(AllowlistFiles
+#if LLVM_MAJOR > 10 || (LLVM_MAJOR == 10 && LLVM_MINOR > 0)
+ , *vfs::getRealFileSystem()
+#endif
+ );
if (BlocklistFiles.size() > 0)
- Blocklist = SpecialCaseList::createOrDie(BlocklistFiles,
- *vfs::getRealFileSystem());
+ Blocklist = SpecialCaseList::createOrDie(BlocklistFiles
+#if LLVM_MAJOR > 10 || (LLVM_MAJOR == 10 && LLVM_MINOR > 0)
+ , *vfs::getRealFileSystem()
+#endif
+ );
}
@@ -371,11 +377,17 @@ class ModuleSanitizerCoverageLegacyPass : public ModulePass {
: ModulePass(ID), Options(Options) {
if (AllowlistFiles.size() > 0)
- Allowlist = SpecialCaseList::createOrDie(AllowlistFiles,
- *vfs::getRealFileSystem());
+ Allowlist = SpecialCaseList::createOrDie(AllowlistFiles
+#if LLVM_MAJOR > 10 || (LLVM_MAJOR == 10 && LLVM_MINOR > 0)
+ , *vfs::getRealFileSystem()
+#endif
+ );
if (BlocklistFiles.size() > 0)
- Blocklist = SpecialCaseList::createOrDie(BlocklistFiles,
- *vfs::getRealFileSystem());
+ Blocklist = SpecialCaseList::createOrDie(BlocklistFiles
+#if LLVM_MAJOR > 10 || (LLVM_MAJOR == 10 && LLVM_MINOR > 0)
+ , *vfs::getRealFileSystem()
+#endif
+ );
initializeModuleSanitizerCoverageLegacyPassPass(
*PassRegistry::getPassRegistry());