mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
ASTPrinter: Remove ASTPrinter's dependency on Sema. (#10985)
This commit is contained in:
@@ -318,7 +318,7 @@ static bool getModuleInterfaceInfo(ASTContext &Ctx,
|
||||
}
|
||||
}
|
||||
|
||||
PrintOptions Options = PrintOptions::printInterface();
|
||||
PrintOptions Options = PrintOptions::printModuleInterface();
|
||||
ModuleTraversalOptions TraversalOptions = None; // Don't print submodules.
|
||||
SmallString<128> Text;
|
||||
llvm::raw_svector_ostream OS(Text);
|
||||
@@ -345,7 +345,7 @@ static bool getHeaderInterfaceInfo(ASTContext &Ctx,
|
||||
return true;
|
||||
}
|
||||
|
||||
PrintOptions Options = PrintOptions::printInterface();
|
||||
PrintOptions Options = PrintOptions::printModuleInterface();
|
||||
|
||||
SmallString<128> Text;
|
||||
llvm::raw_svector_ostream OS(Text);
|
||||
|
||||
Reference in New Issue
Block a user