[NFC] Rename ImportFilterKind cases to be clearer.

This commit is contained in:
Varun Gandhi
2020-09-23 12:50:20 -07:00
parent d669247cd1
commit d3369f7711
22 changed files with 70 additions and 71 deletions

View File

@@ -101,8 +101,8 @@ static void printImports(raw_ostream &out,
// FIXME: This is very similar to what's in Serializer::writeInputBlock, but
// it's not obvious what higher-level optimization would be factored out here.
ModuleDecl::ImportFilter allImportFilter = {
ModuleDecl::ImportFilterKind::Public,
ModuleDecl::ImportFilterKind::Private,
ModuleDecl::ImportFilterKind::Exported,
ModuleDecl::ImportFilterKind::Default,
ModuleDecl::ImportFilterKind::SPIAccessControl};
// With -experimental-spi-imports:
@@ -128,7 +128,7 @@ static void printImports(raw_ostream &out,
// Collect the public imports as a subset so that we can mark them with
// '@_exported'.
SmallVector<ModuleDecl::ImportedModule, 8> publicImports;
M->getImportedModules(publicImports, ModuleDecl::ImportFilterKind::Public);
M->getImportedModules(publicImports, ModuleDecl::ImportFilterKind::Exported);
llvm::SmallSet<ModuleDecl::ImportedModule, 8,
ModuleDecl::OrderImportedModules> publicImportSet;