[Serialization] Minor ModuleFile/ModuleFileSharedCore improvements

* Add properties to ModuleFile which holds information from the control
  block.
* 'ExtendedValidationInfo' parameter for 'ModuleFileSharedCore::load()'
  cannot be 'nullptr'. Make it non-defaulted Rvalue reference.
This commit is contained in:
Rintaro Ishizaki
2020-09-01 10:10:03 -07:00
parent e524b1cb62
commit b7c19656ab
5 changed files with 52 additions and 18 deletions

View File

@@ -357,7 +357,7 @@ ModuleFile::getModuleName(ASTContext &Ctx, StringRef modulePath,
nullptr,
nullptr,
/*isFramework*/isFramework, loadedModuleFile,
&ExtInfo);
ExtInfo);
Name = loadedModuleFile->Name.str();
return std::move(moduleBuf.get());
}