[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:
Brian Gesiak
2017-01-07 17:06:35 -05:00
parent c0ecff1344
commit 663b92ece9
87 changed files with 561 additions and 562 deletions

View File

@@ -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)