Print package-name in .private.swiftinterface only for better abstraction

Resolves rdar://107638447
This commit is contained in:
Ellie Shin
2023-04-20 17:41:43 -07:00
parent 578c63a372
commit b081404daa
12 changed files with 163 additions and 49 deletions

View File

@@ -21,6 +21,7 @@
#define SWIFT_COMPILER_VERSION_KEY "swift-compiler-version"
#define SWIFT_MODULE_FLAGS_KEY "swift-module-flags"
#define SWIFT_MODULE_FLAGS_IGNORABLE_KEY "swift-module-flags-ignorable"
#define SWIFT_MODULE_FLAGS_IGNORABLE_PRIVATE_KEY "swift-module-flags-ignorable-private"
namespace swift {
@@ -50,6 +51,10 @@ struct ModuleInterfaceOptions {
/// ignored by the earlier version of the compiler.
std::string IgnorableFlags;
/// Ignorable flags that should only be printed in .private.swiftinterface file;
/// e.g. -package-name PACKAGE_ID
std::string IgnorablePrivateFlags;
/// Print for a private swiftinterface file, SPI decls and attributes.
bool PrintPrivateInterfaceContent = false;