ModuleInterface: add a frontend flag to skip printing import statement corresponding to a module name.

Related: rdar://63465931
This commit is contained in:
Xi Ge
2022-02-24 15:17:40 -08:00
parent 56740867bd
commit 1115332ab9
6 changed files with 40 additions and 0 deletions

View File

@@ -360,6 +360,9 @@ static void ParseModuleInterfaceArgs(ModuleInterfaceOptions &Opts,
Opts.PrintSPIs = true;
}
}
for (auto val: Args.getAllArgValues(OPT_skip_import_in_public_interface)) {
Opts.ModulesToSkipInPublicInterface.push_back(val);
}
}
/// Save a copy of any flags marked as ModuleInterfaceOption, if running