mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +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:
@@ -874,7 +874,7 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
std::shared_ptr<sma::Module> createSMAModel(Module *M) {
|
||||
std::shared_ptr<sma::Module> createSMAModel(ModuleDecl *M) {
|
||||
SmallVector<Decl *, 1> Decls;
|
||||
M->getDisplayDecls(Decls);
|
||||
|
||||
@@ -926,7 +926,7 @@ int swift::doGenerateModuleAPIDescription(StringRef MainExecutablePath,
|
||||
|
||||
PrintOptions Options = PrintOptions::printEverything();
|
||||
|
||||
Module *M = CI.getMainModule();
|
||||
ModuleDecl *M = CI.getMainModule();
|
||||
M->getMainSourceFile(Invocation->getSourceFileKind()).print(llvm::outs(),
|
||||
Options);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user