[Serialization] Remove treatAsPartialModule parameter

This information can be derived from whether we're
installing the module file into the main module.
This commit is contained in:
Hamish Knight
2020-05-28 12:09:10 -07:00
parent c98c862e7e
commit f810cfcc45
6 changed files with 20 additions and 27 deletions

View File

@@ -705,14 +705,10 @@ public:
/// This does not include diagnostics about \e this file failing to load,
/// but rather other things that might be imported as part of bringing the
/// file into the AST.
/// \param treatAsPartialModule If true, processes implementation-only
/// information instead of assuming the client won't need it and shouldn't
/// see it.
///
/// \returns any error that occurred during association, such as being
/// compiled for a different OS.
Status associateWithFileContext(FileUnit *file, SourceLoc diagLoc,
bool treatAsPartialModule);
Status associateWithFileContext(FileUnit *file, SourceLoc diagLoc);
/// Transfers ownership of a buffer that might contain source code where
/// other parts of the compiler could have emitted diagnostics, to keep them