@@ -277,17 +277,6 @@ struct gcc_jit_extended_asm : public gcc::jit::recording::extended_asm
277
277
} \
278
278
JIT_END_STMT
279
279
280
- #define RETURN_IF_FAIL_PRINTF5 (TEST_EXPR , CTXT , LOC , ERR_FMT , A0 , A1 , A2 , A3 , \
281
- A4 ) \
282
- JIT_BEGIN_STMT \
283
- if (!(TEST_EXPR)) \
284
- { \
285
- jit_error ((CTXT), (LOC), "%s: " ERR_FMT, \
286
- __func__, (A0), (A1), (A2), (A3), (A4)); \
287
- return; \
288
- } \
289
- JIT_END_STMT
290
-
291
280
/* Check that BLOCK is non-NULL, and that it's OK to add statements to
292
281
it. This will fail if BLOCK has already been terminated by some
293
282
kind of jump or a return. */
@@ -1428,38 +1417,6 @@ gcc_jit_global_set_initializer (gcc_jit_lvalue *global,
1428
1417
return global ;
1429
1418
}
1430
1419
1431
- /* Public entrypoint. See description in libgccjit.h.
1432
-
1433
- After error-checking, the real work is done by the
1434
- gcc::jit::recording::global::set_initializer_value method, in
1435
- jit-recording.c. */
1436
-
1437
- void
1438
- gcc_jit_global_set_initializer_value (gcc_jit_lvalue * global ,
1439
- gcc_jit_rvalue * value )
1440
- {
1441
- RETURN_IF_FAIL (global , NULL , NULL , "NULL global" );
1442
- RETURN_IF_FAIL (value , NULL , NULL , "NULL value" );
1443
- RETURN_IF_FAIL_PRINTF1 (global -> is_global (), NULL , NULL ,
1444
- "lvalue \"%s\" not a global" ,
1445
- global -> get_debug_string ());
1446
-
1447
- RETURN_IF_FAIL_PRINTF5 (
1448
- compatible_types (global -> get_type (),
1449
- value -> get_type ()),
1450
- NULL , NULL ,
1451
- "mismatching types for global \"%s\":"
1452
- " assignment to global %s (type: %s) from %s (type: %s)" ,
1453
- global -> get_debug_string (),
1454
- global -> get_debug_string (),
1455
- global -> get_type ()-> get_debug_string (),
1456
- value -> get_debug_string (),
1457
- value -> get_type ()-> get_debug_string ());
1458
-
1459
- reinterpret_cast < gcc ::jit ::recording ::global * > (global )
1460
- -> set_initializer_value (value );
1461
- }
1462
-
1463
1420
/* Public entrypoint. See description in libgccjit.h.
1464
1421
1465
1422
After error-checking, this calls the trivial
0 commit comments