Commit Graph

2 Commits

Author SHA1 Message Date
Michael Gottesman
5c9d7299b3 Put all of SILFunction verification into the SILVerifier.
This centralizes the code and also puts all of the verification code behind a
pretty stack trace.

Swift SVN r25984
2015-03-11 19:40:20 +00:00
Michael Gottesman
b2d9833259 Add PrettyStackTrace support for SILFunctionTransforms and SILModuleTransforms.
In the case of a crash in the optimizer or verifier, this prints out information
about the source of the crash. This saves engineering time by allowing one to
get some quick information about the crash without needing to jump into the
buffer.

In the case of a SILFunctionTransform, this prints out the name of the function
being optimized and the name of the transform.

In the case of a SILModuleTransform, this prints out the name of the transform.

<rdar://problem/19946491>

Swift SVN r25831
2015-03-07 03:08:28 +00:00