mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add dump overloads to print debug info for SIL.
This patch adds dump overload methods to SILInstruction, SILBasicBlock, SILFunction, and SILModule that prints the debug information as well.
This commit is contained in:
@@ -975,6 +975,9 @@ public:
|
||||
/// Pretty-print the module.
|
||||
void dump(bool Verbose = false) const;
|
||||
|
||||
/// Pretty-print the module with DebugInfo.
|
||||
void dump(bool Verbose, bool DebugInfo) const;
|
||||
|
||||
/// Pretty-print the module to a file.
|
||||
/// Useful for dumping the module when running in a debugger.
|
||||
/// Warning: no error handling is done. Fails with an assert if the file
|
||||
|
||||
Reference in New Issue
Block a user