diff options
author | Iain Buclaw <ibuclaw@gdcproject.org> | 2022-02-21 00:06:16 +0100 |
---|---|---|
committer | Iain Buclaw <ibuclaw@gdcproject.org> | 2022-02-21 00:12:01 +0100 |
commit | 1d98337c6bebf41743dd3d1cc36222aa30e8f382 (patch) | |
tree | 9b1d528c247a528c812fec2a88fe3251d1cbab9e /gcc/d/runtime.def | |
parent | 6384eff56dba1fac071c1b525f7e49cf03f2737f (diff) | |
download | gcc-1d98337c6bebf41743dd3d1cc36222aa30e8f382.zip gcc-1d98337c6bebf41743dd3d1cc36222aa30e8f382.tar.gz gcc-1d98337c6bebf41743dd3d1cc36222aa30e8f382.tar.bz2 |
d: Remove handling of deleting GC allocated classes.
Now that the `delete' keyword has been removed from the front-end, only
compiler-generated uses of DeleteExp reach the code generator via the
auto-destruction of `scope class' variables.
The run-time library helpers that previously were used to delete GC
class objects can now be removed from the compiler.
gcc/d/ChangeLog:
* expr.cc (ExprVisitor::visit (DeleteExp *)): Remove handling of
deleting GC allocated classes.
* runtime.def (DELCLASS): Remove.
(DELINTERFACE): Remove.
Diffstat (limited to 'gcc/d/runtime.def')
-rw-r--r-- | gcc/d/runtime.def | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/d/runtime.def b/gcc/d/runtime.def index acb610f..534f866 100644 --- a/gcc/d/runtime.def +++ b/gcc/d/runtime.def @@ -63,11 +63,7 @@ DEF_D_RUNTIME (ARRAYBOUNDS_INDEXP, "_d_arraybounds_indexp", RT(VOID), DEF_D_RUNTIME (NEWCLASS, "_d_newclass", RT(OBJECT), P1(CONST_CLASSINFO), 0) DEF_D_RUNTIME (NEWTHROW, "_d_newThrowable", RT(OBJECT), P1(CONST_CLASSINFO), 0) -/* Used when calling delete on a class or interface. */ -DEF_D_RUNTIME (DELCLASS, "_d_delclass", RT(VOID), P1(VOIDPTR), 0) -DEF_D_RUNTIME (DELINTERFACE, "_d_delinterface", RT(VOID), P1(VOIDPTR), 0) - -/* Same as deleting a class, but used for stack-allocated classes. */ +/* Used when calling delete on a stack-allocated class or interface. */ DEF_D_RUNTIME (CALLFINALIZER, "_d_callfinalizer", RT(VOID), P1(VOIDPTR), 0) DEF_D_RUNTIME (CALLINTERFACEFINALIZER, "_d_callinterfacefinalizer", RT(VOID), P1(VOIDPTR), 0) |