Frontend: add a frontend argument to pass down block list config file path

This commit is contained in:
Xi Ge
2023-04-05 12:20:49 -07:00
parent ba31c97d4f
commit 2c2431e2da
4 changed files with 13 additions and 0 deletions

View File

@@ -1164,6 +1164,9 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
Opts.DumpTypeWitnessSystems = Args.hasArg(OPT_dump_type_witness_systems);
for (auto A : Args.getAllArgValues(options::OPT_block_list_file)) {
Opts.BlocklistConfigFilePath.push_back(A);
}
if (const Arg *A = Args.getLastArg(options::OPT_concurrency_model)) {
Opts.ActiveConcurrencyModel =
llvm::StringSwitch<ConcurrencyModel>(A->getValue())