mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Assume a SILModule is whole-module when SILGen-ing from a ModuleDecl
No functionality change. Unfortunately we still need the flag in SILModule itself because of the ability to create an empty SILModule and parse SIL into it incrementally, which can happen before there's a FileUnit to use as the associated DeclContext instead of a CompilerInstance's main module.
This commit is contained in:
@@ -345,8 +345,7 @@ public:
|
||||
/// If a source file is provided, SIL will only be emitted for decls in that
|
||||
/// source file.
|
||||
static std::unique_ptr<SILModule>
|
||||
constructSIL(ModuleDecl *M, SILOptions &Options, FileUnit *sf = nullptr,
|
||||
bool isWholeModule = false);
|
||||
constructSIL(ModuleDecl *M, SILOptions &Options, FileUnit *sf = nullptr);
|
||||
|
||||
/// \brief Create and return an empty SIL module that we can
|
||||
/// later parse SIL bodies directly into, without converting from an AST.
|
||||
|
||||
Reference in New Issue
Block a user