ModuleLoader: move PreferInterfaceForModules from SerializedModuleLoaderBase to ParseableInterfaceModuleLoader, NFC

We shouldn't over-expose this field since only ParseableInterfaceModuleLoader
is using it.
This commit is contained in:
Xi Ge
2019-09-03 18:07:53 -07:00
parent 2062ee837d
commit d7863ce64e
3 changed files with 7 additions and 9 deletions

View File

@@ -42,10 +42,8 @@ class SerializedModuleLoaderBase : public ModuleLoader {
protected:
ASTContext &Ctx;
ModuleLoadingMode LoadMode;
ArrayRef<std::string> PreferInterfaceForModules;
SerializedModuleLoaderBase(ASTContext &ctx, DependencyTracker *tracker,
ModuleLoadingMode LoadMode,
ArrayRef<std::string> PreferInterfaceForModules = {});
ModuleLoadingMode LoadMode);
void collectVisibleTopLevelModuleNamesImpl(SmallVectorImpl<Identifier> &names,
StringRef extension) const;