mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Remove TranslationUnit's HasBuiltinModuleAccess field.
This information is important when a SourceFile is created, and never again after that. Swift SVN r9240
This commit is contained in:
@@ -405,9 +405,13 @@ public:
|
||||
/// purposes.
|
||||
ASTStage_t ASTStage = Parsing;
|
||||
|
||||
SourceFile(TranslationUnit &tu, SourceKind K, Optional<unsigned> ImportID,
|
||||
bool hasBuiltinModuleAccess);
|
||||
SourceFile(TranslationUnit &tu, SourceKind K, unsigned ImportID)
|
||||
: SourceFile(tu, K, ImportID, false) {}
|
||||
SourceFile(TranslationUnit &tu, SourceKind K,
|
||||
Optional<unsigned> ImportID = {})
|
||||
: ImportBufferID(ImportID ? *ImportID : -1), TU(tu), Kind(K) {}
|
||||
bool hasBuiltinModuleAccess = false)
|
||||
: SourceFile(tu, K, Nothing, hasBuiltinModuleAccess) {}
|
||||
|
||||
ArrayRef<std::pair<Module::ImportedModule, bool>> getImports() const {
|
||||
assert(ASTStage >= Parsed || Kind == SIL);
|
||||
@@ -465,10 +469,6 @@ public:
|
||||
// FIXME: Make private or eliminate altogether.
|
||||
SourceFile *MainSourceFile;
|
||||
|
||||
/// If this is true, then the translation unit is allowed to access the
|
||||
/// Builtin module with an explicit import.
|
||||
bool HasBuiltinModuleAccess = false;
|
||||
|
||||
TranslationUnit(Identifier Name, ASTContext &C)
|
||||
: Module(ModuleKind::TranslationUnit, Name, C) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user