Merge pull request #23910 from adrian-prantl/49751363

Record parseable interface imports in the debug info.
This commit is contained in:
adrian-prantl
2019-04-19 14:23:57 -07:00
committed by GitHub
13 changed files with 77 additions and 10 deletions

View File

@@ -582,6 +582,12 @@ public:
std::string OutPathStr = OutPath;
SerializationOpts.OutputPath = OutPathStr.c_str();
SerializationOpts.ModuleLinkName = FEOpts.ModuleLinkName;
// Record any non-SDK parseable interface files for the debug info.
StringRef SDKPath = SubInstance.getASTContext().SearchPathOpts.SDKPath;
if (!getRelativeDepPath(InPath, SDKPath))
SerializationOpts.ParseableInterface = InPath;
SmallVector<FileDependency, 16> Deps;
if (collectDepsForSerialization(SubInstance, Deps,
FEOpts.SerializeModuleInterfaceDependencyHashes)) {