mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Frontend: Remove -disable-print-package-name-for-non-package-interface.
It is unsound to expose `package` declarations in textual interfaces without a package identity for them to belong to so we should not offer this flag. Resolves rdar://139361524.
This commit is contained in:
@@ -524,7 +524,6 @@ static void ParseModuleInterfaceArgs(ModuleInterfaceOptions &Opts,
|
||||
Opts.PrintMissingImports =
|
||||
!Args.hasArg(OPT_disable_print_missing_imports_in_module_interface);
|
||||
Opts.ABIComments = Args.hasArg(OPT_abi_comments_in_module_interface);
|
||||
Opts.DisablePackageNameForNonPackageInterface |= Args.hasArg(OPT_disable_print_package_name_for_non_package_interface);
|
||||
|
||||
if (const Arg *A = Args.getLastArg(OPT_library_level)) {
|
||||
StringRef contents = A->getValue();
|
||||
@@ -555,9 +554,7 @@ static bool ShouldIncludeModuleInterfaceArg(const Arg *A) {
|
||||
}
|
||||
|
||||
static bool IsPackageInterfaceFlag(const Arg *A, ArgList &Args) {
|
||||
return A->getOption().matches(options::OPT_package_name) &&
|
||||
Args.hasArg(
|
||||
options::OPT_disable_print_package_name_for_non_package_interface);
|
||||
return false;
|
||||
}
|
||||
|
||||
static bool IsPrivateInterfaceFlag(const Arg *A, ArgList &Args) {
|
||||
|
||||
Reference in New Issue
Block a user