mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Serialization] Remove duplicated IsSIB bit
Store the bit on the ModuleFile, and query it from the SerializedASTFile.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user