context->m_adjust_diagnostic_info = cp_adjust_diagnostic_info;
}
-/* Dump an '@module' name suffix for DECL, if any. */
+/* Dump an '@module' name suffix for DECL, if it's attached to an import. */
static void
dump_module_suffix (cxx_pretty_printer *pp, tree decl)
pass, but ICBW. */
#define LAZY_HEADROOM 15 /* File descriptor headroom. */
-/* Vector of module state. Indexed by OWNER. Has at least 2 slots. */
+/* Vector of module state. Indexed by OWNER. Index 0 is reserved for the
+ current TU; imports start at 1. */
static GTY(()) vec<module_state *, va_gc> *modules;
/* Hash of module state, findable by {name, parent}. */
return mod;
}
+/* DECL is imported, return which module imported it.
+ If FLEXIBLE, return -1 if not found, otherwise checking ICE. */
+
unsigned
get_importing_module (tree decl, bool flexible)
{