[Frontend] Output the private module interface with the SPI info

This commit is contained in:
Alexis Laferrière
2020-02-06 12:28:26 -08:00
parent 2e73cb44fd
commit 901392896d
19 changed files with 139 additions and 24 deletions

View File

@@ -39,6 +39,9 @@ struct ModuleInterfaceOptions {
/// generation time, re-applied to CompilerInvocation when reading
/// back .swiftinterface and reconstructing .swiftmodule.
std::string Flags;
// Print SPI decls and attributes.
bool PrintSPIs = false;
};
extern version::Version InterfaceFormatVersion;
@@ -50,7 +53,7 @@ llvm::Regex getSwiftInterfaceModuleFlagsRegex();
/// source file to import this module, subject to options given by \p Opts.
///
/// Unlike a serialized module, the textual format generated by
/// emitModuleInterface is intended to be stable across compiler versions while
/// emitSwiftInterface is intended to be stable across compiler versions while
/// still describing the full ABI of the module in question.
///
/// The initial plan for this format can be found at