mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[AST] Completely replace Module with ModuleDecl
The typedef `swift::Module` was a temporary solution that allowed `swift::Module` to be renamed to `swift::ModuleDecl` without requiring every single callsite to be modified. Modify all the callsites, and get rid of the typedef.
This commit is contained in:
@@ -1314,7 +1314,7 @@ public:
|
||||
}
|
||||
|
||||
public:
|
||||
void lookupVisibleDecls(ArrayRef<Module *> Modules) {
|
||||
void lookupVisibleDecls(ArrayRef<ModuleDecl *> Modules) {
|
||||
for (auto M : Modules) {
|
||||
llvm::SmallVector<Decl*, 512> Decls;
|
||||
M->getDisplayDecls(Decls);
|
||||
@@ -3355,7 +3355,7 @@ static int dumpSwiftModules(const CompilerInvocation &InitInvok,
|
||||
return 1;
|
||||
}
|
||||
|
||||
std::vector<Module*> Modules;
|
||||
std::vector<ModuleDecl*> Modules;
|
||||
CompilerInvocation Invocation(InitInvok);
|
||||
CompilerInstance CI;
|
||||
// Display diagnostics to stderr.
|
||||
@@ -3423,7 +3423,7 @@ static int dumpSDKContent(const CompilerInvocation &InitInvok,
|
||||
return 1;
|
||||
}
|
||||
|
||||
std::vector<Module *> Modules;
|
||||
std::vector<ModuleDecl *> Modules;
|
||||
for (auto &Entry : ModuleNames) {
|
||||
StringRef Name = Entry.getKey();
|
||||
if (options::Verbose)
|
||||
|
||||
Reference in New Issue
Block a user