c++: Add lang_decl, type_decl API
authorNathan Sidwell <nathan@acm.org>
Wed, 2 Dec 2020 15:40:49 +0000 (07:40 -0800)
committerNathan Sidwell <nathan@acm.org>
Wed, 2 Dec 2020 15:40:49 +0000 (07:40 -0800)
commit0fc6469d2491bb588d02c5416b5be0131aa4c3b0
treea823063a1d4f0de501ab38a024b0821d29bb4739
parent329ae1d7751346ba166d34e77a43e8cc33daa1c9
c++: Add lang_decl, type_decl API

We need to call the lang_decl and type_decl creators from the module
loading machinery.  This makes them reachable.

gcc/cp/
* cp-tree.h (maybe_add_lang_decl_raw, maybe_add_lang_type_raw):
Declare.
* lex.c (maybe_add_lang_decl_raw, maybe_add_lang_type_raw):
Externalize, reformat.
gcc/cp/cp-tree.h
gcc/cp/lex.c