mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Printer] Conditionally print Clang types in emitted SIL.
Hopefully, this helps us debug Clang type mismatches better.
This commit is contained in:
@@ -647,10 +647,11 @@ public:
|
||||
/// \param ShouldSort If set to true sorts functions, vtables, sil global
|
||||
/// variables, and witness tables by name to ease diffing.
|
||||
/// \param PrintASTDecls If set to true print AST decls.
|
||||
void print(raw_ostream &OS, bool Verbose = false,
|
||||
ModuleDecl *M = nullptr, bool ShouldSort = false,
|
||||
void print(raw_ostream &OS,
|
||||
ModuleDecl *M = nullptr,
|
||||
const SILOptions &Opts = SILOptions(),
|
||||
bool PrintASTDecls = true) const {
|
||||
SILPrintContext PrintCtx(OS, Verbose, ShouldSort);
|
||||
SILPrintContext PrintCtx(OS, Opts);
|
||||
print(PrintCtx, M, PrintASTDecls);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user