<rdar://problem/20402026> Remove scope entry/exit log entries

Don't emit scope entry/exit logging code in instrumentation for
playgrounds if -playground-high-performance option is passed.

Swift SVN r27046
This commit is contained in:
Chris Willmore
2015-04-06 22:09:20 +00:00
parent c5f65bd7a4
commit d3a977d824
7 changed files with 71 additions and 10 deletions

View File

@@ -133,7 +133,10 @@ namespace swift {
/// Once parsing and name-binding are complete, this optionally transforms the
/// ASTs to add calls to external logging functions.
void performPlaygroundTransform(SourceFile &SF);
///
/// \param HighPerformance True if the playground transform should omit
/// instrumentation that has a high runtime performance impact.
void performPlaygroundTransform(SourceFile &SF, bool HighPerformance);
/// Flags used to control type checking.
enum class TypeCheckingFlags : unsigned {