Allow for dumping a sil file to disk with the SwiftModule to make it easier to debug modules from the debugger. This is not meant for normal use.

Swift SVN r32838
This commit is contained in:
Michael Gottesman
2015-10-23 01:38:05 +00:00
parent afef8a73ea
commit 9787441f84
2 changed files with 5 additions and 3 deletions

View File

@@ -485,7 +485,8 @@ public:
/// Useful for dumping the module when running in a debugger.
/// Warning: no error handling is done. Fails with an assert if the file
/// cannot be opened.
void dump(const char *FileName, bool Verbose = false) const;
void dump(const char *FileName, bool Verbose = false,
bool PrintASTDecls = false) const;
/// Pretty-print the module to the designated stream.
///