[Serialization] Remove duplicated IsSIB bit

Store the bit on the ModuleFile, and query it
from the SerializedASTFile.
This commit is contained in:
Hamish Knight
2020-04-30 14:17:23 -07:00
parent 89a3d663b5
commit b6150b06b3
2 changed files with 9 additions and 7 deletions

View File

@@ -306,16 +306,15 @@ class SerializedASTFile final : public LoadedFile {
ModuleFile &File;
bool IsSIB;
SerializedASTFile(ModuleDecl &M, ModuleFile &file, bool isSIB = false)
: LoadedFile(FileUnitKind::SerializedAST, M), File(file), IsSIB(isSIB) {}
SerializedASTFile(ModuleDecl &M, ModuleFile &file)
: LoadedFile(FileUnitKind::SerializedAST, M), File(file) {}
void
collectLinkLibrariesFromImports(ModuleDecl::LinkLibraryCallback callback) const;
public:
bool isSIB() const { return IsSIB; }
/// Whether this represents a '.sib' file.
bool isSIB() const;
/// Returns the language version that was used to compile the contents of this
/// file.