diff options
| author | Marijn Haverbeke <[email protected]> | 2011-04-29 13:34:30 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <[email protected]> | 2011-04-29 21:19:50 +0200 |
| commit | c39a95da90a3d8247e011f6a42f0c53ced34de97 (patch) | |
| tree | 322d42c461f63623937d1a034df0b61e494b3463 /src/comp/back | |
| parent | rustc: Temporarily add a switch and a corresponding makefile variable to disa... (diff) | |
| download | rust-c39a95da90a3d8247e011f6a42f0c53ced34de97.tar.xz rust-c39a95da90a3d8247e011f6a42f0c53ced34de97.zip | |
Implement destructors in rustc
Unlike rustboot, rustc keeps it destructors in vtables. Entry 0 holds
either the destructor for the obj or a NULL pointer. The method
offsets start at 1.
Diffstat (limited to 'src/comp/back')
| -rw-r--r-- | src/comp/back/abi.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/comp/back/abi.rs b/src/comp/back/abi.rs index f43e74ef..39c176dc 100644 --- a/src/comp/back/abi.rs +++ b/src/comp/back/abi.rs @@ -38,6 +38,7 @@ const int tydesc_field_drop_glue = 4; const int tydesc_field_free_glue = 5; const int tydesc_field_sever_glue = 6; const int tydesc_field_mark_glue = 7; +// FIXME no longer used in rustc, drop when rustboot is gone const int tydesc_field_obj_drop_glue = 8; const int tydesc_field_is_stateful = 9; const int tydesc_field_cmp_glue = 10; |