mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-15 19:38:09 +00:00
code format
This commit is contained in:
@ -174,6 +174,7 @@ class ModuleSanitizerCoverage {
|
||||
,
|
||||
Allowlist(Allowlist),
|
||||
Blocklist(Blocklist) {
|
||||
|
||||
*/
|
||||
|
||||
}
|
||||
@ -272,6 +273,7 @@ class ModuleSanitizerCoverageLegacyPass : public ModulePass {
|
||||
ModuleSanitizerCoverageLegacyPass(
|
||||
const SanitizerCoverageOptions &Options = SanitizerCoverageOptions())
|
||||
: ModulePass(ID), Options(Options) {
|
||||
|
||||
/* ,
|
||||
const std::vector<std::string> &AllowlistFiles =
|
||||
std::vector<std::string>(),
|
||||
@ -1110,7 +1112,8 @@ void ModuleSanitizerCoverage::instrumentFunction(
|
||||
return;
|
||||
// if (Allowlist && !Allowlist->inSection("coverage", "fun", F.getName()))
|
||||
// return;
|
||||
// if (Blocklist && Blocklist->inSection("coverage", "fun", F.getName())) return;
|
||||
// if (Blocklist && Blocklist->inSection("coverage", "fun", F.getName()))
|
||||
// return;
|
||||
|
||||
// afl++ START
|
||||
if (!F.size()) return;
|
||||
@ -1471,7 +1474,8 @@ INITIALIZE_PASS_END(ModuleSanitizerCoverageLegacyPass, "sancov",
|
||||
false)
|
||||
|
||||
ModulePass *llvm::createModuleSanitizerCoverageLegacyPassPass(
|
||||
const SanitizerCoverageOptions &Options, const std::vector<std::string> &AllowlistFiles,
|
||||
const SanitizerCoverageOptions &Options,
|
||||
const std::vector<std::string> &AllowlistFiles,
|
||||
const std::vector<std::string> &BlocklistFiles) {
|
||||
|
||||
return new ModuleSanitizerCoverageLegacyPass(Options);
|
||||
|
@ -852,6 +852,7 @@ int main(int argc, char **argv, char **envp) {
|
||||
}
|
||||
|
||||
} else if (instrument_mode == INSTRUMENT_LTO ||
|
||||
|
||||
instrument_mode == INSTRUMENT_CLASSIC) {
|
||||
|
||||
lto_mode = 1;
|
||||
|
Reference in New Issue
Block a user