@@ -248,48 +248,37 @@ bool ASTResultSynthesizer::SynthesizeBodyResult(CompoundStmt *Body,
248
248
// For Lvalues
249
249
//
250
250
// - In AST result synthesis (here!) the expression E is transformed into an
251
- // initialization
252
- // T *$__lldb_expr_result_ptr = &E.
251
+ // initialization T *$__lldb_expr_result_ptr = &E.
253
252
//
254
253
// - In structure allocation, a pointer-sized slot is allocated in the
255
- // struct that is to be
256
- // passed into the expression.
254
+ // struct that is to be passed into the expression.
257
255
//
258
256
// - In IR transformations, reads and writes to $__lldb_expr_result_ptr are
259
- // redirected at
260
- // an entry in the struct ($__lldb_arg) passed into the expression.
261
- // (Other persistent
262
- // variables are treated similarly, having been materialized as
263
- // references, but in those
264
- // cases the value of the reference itself is never modified.)
257
+ // redirected at an entry in the struct ($__lldb_arg) passed into the
258
+ // expression. (Other persistent variables are treated similarly, having
259
+ // been materialized as references, but in those cases the value of the
260
+ // reference itself is never modified.)
265
261
//
266
262
// - During materialization, $0 (the result persistent variable) is ignored.
267
263
//
268
264
// - During dematerialization, $0 is marked up as a load address with value
269
- // equal to the
270
- // contents of the structure entry.
265
+ // equal to the contents of the structure entry.
271
266
//
272
267
// For Rvalues
273
268
//
274
269
// - In AST result synthesis the expression E is transformed into an
275
- // initialization
276
- // static T $__lldb_expr_result = E.
270
+ // initialization static T $__lldb_expr_result = E.
277
271
//
278
272
// - In structure allocation, a pointer-sized slot is allocated in the
279
- // struct that is to be
280
- // passed into the expression.
273
+ // struct that is to be passed into the expression.
281
274
//
282
275
// - In IR transformations, an instruction is inserted at the beginning of
283
- // the function to
284
- // dereference the pointer resident in the slot. Reads and writes to
285
- // $__lldb_expr_result
286
- // are redirected at that dereferenced version. Guard variables for the
287
- // static variable
288
- // are excised.
276
+ // the function to dereference the pointer resident in the slot. Reads and
277
+ // writes to $__lldb_expr_result are redirected at that dereferenced
278
+ // version. Guard variables for the static variable are excised.
289
279
//
290
280
// - During materialization, $0 (the result persistent variable) is
291
- // populated with the location
292
- // of a newly-allocated area of memory.
281
+ // populated with the location of a newly-allocated area of memory.
293
282
//
294
283
// - During dematerialization, $0 is ignored.
295
284
0 commit comments