On Mon, Sep 4, 2017 at 10:08 AM, Eric Botcazou <ebotca...@adacore.com> wrote: >> A solution would be to put them into a global GCed pointer-map or vector, >> freeing that at free-lang-data time. > > Here's a version that implements a bona-fide type->offset_type map. > > PR bootstrap/81926 > * cp-objcp-common.c (struct offset_type_hasher): New class. > (offset_type_hash): New variable. > (cp_get_debug_type): Associate the OFFSET_TYPEs with the types.
This looks good. But let's call it debug_type_hash instead. OK with that change. Jason