File tree 3 files changed +9
-5
lines changed
3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -231,7 +231,11 @@ class FrontendOptions {
231
231
// / Indicates whether the playground transformation should be applied.
232
232
bool PlaygroundTransform = false ;
233
233
234
- // / Indicates whether the pc macro should be applied.
234
+ // / Indicates whether the AST should be instrumented to simulate a debugger's
235
+ // / program counter. Similar to the PlaygroundTransform, this will instrument
236
+ // / the AST with function calls that get called when you would see a program
237
+ // / counter move in a debugger. To adopt this implement the
238
+ // / __builtin_pc_before and __builtin_pc_after functions.
235
239
bool PCMacro = false ;
236
240
237
241
// / Indicates whether the playground transformation should omit
Original file line number Diff line number Diff line change @@ -153,9 +153,9 @@ namespace swift {
153
153
// / instrumentation that has a high runtime performance impact.
154
154
void performPlaygroundTransform (SourceFile &SF, bool HighPerformance);
155
155
156
- // / Once parsing, name-binding and the playground transform (if required)
157
- // / are complete this optionally walks the ASTs to add calls to externally
158
- // / provided functions that simulate "program counter"-like debugging events.
156
+ // / Once parsing and name-binding are complete this optionally walks the ASTs
157
+ // / to add calls to externally provided functions that simulate
158
+ // / "program counter"-like debugging events.
159
159
void performPCMacro (SourceFile &SF, TopLevelContext &TLC);
160
160
161
161
// / Flags used to control type checking.
Original file line number Diff line number Diff line change 1
- // ===--- InstrumenterSupport.h - Instrumenter Support -------------------- -===//
1
+ // ===--- InstrumenterSupport.h - Instrumenter Support -----------*- C++ -* -===//
2
2
//
3
3
// This source file is part of the Swift.org open source project
4
4
//
You can’t perform that action at this time.
0 commit comments