File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -465,6 +465,9 @@ class ModuleFile
465
465
return Core->Bits .IsImplicitDynamicEnabled ;
466
466
}
467
467
468
+ // / \c true if this module has incremental dependency information.
469
+ bool hasIncrementalInfo () const { return Core->hasIncrementalInfo (); }
470
+
468
471
// / Associates this module file with the AST node representing it.
469
472
// /
470
473
// / Checks that the file is compatible with the AST module it's being loaded
Original file line number Diff line number Diff line change @@ -69,10 +69,13 @@ class ModuleFileSharedCore {
69
69
// / The data blob containing all of the module's identifiers.
70
70
StringRef IdentifierData;
71
71
72
- // Full blob from the misc. version field of the metadata block. This should
73
- // include the version string of the compiler that built the module.
72
+ // / Full blob from the misc. version field of the metadata block. This should
73
+ // / include the version string of the compiler that built the module.
74
74
StringRef MiscVersion;
75
75
76
+ // / \c true if this module has incremental dependency information.
77
+ bool HasIncrementalInfo = false ;
78
+
76
79
public:
77
80
// / Represents another module that has been imported as a dependency.
78
81
class Dependency {
@@ -490,6 +493,10 @@ class ModuleFileSharedCore {
490
493
ArrayRef<Dependency> getDependencies () const {
491
494
return Dependencies;
492
495
}
496
+
497
+ // / Returns \c true if this module file contains a section with incremental
498
+ // / information.
499
+ bool hasIncrementalInfo () const { return HasIncrementalInfo; }
493
500
};
494
501
495
502
template <typename T, typename RawData>
Original file line number Diff line number Diff line change @@ -714,6 +714,8 @@ LoadedFile *SerializedModuleLoaderBase::loadAST(
714
714
M.setPrivateImportsEnabled ();
715
715
if (loadedModuleFile->isImplicitDynamicEnabled ())
716
716
M.setImplicitDynamicEnabled ();
717
+ if (loadedModuleFile->hasIncrementalInfo ())
718
+ M.setHasIncrementalInfo ();
717
719
718
720
auto diagLocOrInvalid = diagLoc.getValueOr (SourceLoc ());
719
721
loadInfo.status =
You can’t perform that action at this time.
0 commit comments