diff options
Diffstat (limited to 'gcc/cp/lex.c')
-rw-r--r-- | gcc/cp/lex.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index a5d1269..b256931 100644 --- a/gcc/cp/lex.c +++ b/gcc/cp/lex.c @@ -5014,6 +5014,19 @@ copy_lang_decl (node) DECL_LANG_SPECIFIC (node) = ld; } +/* Copy DECL, including any language-specific parts. */ + +tree +copy_decl (decl) + tree decl; +{ + tree copy; + + copy = copy_node (decl); + copy_lang_decl (copy); + return copy; +} + tree cp_make_lang_type (code) enum tree_code code; |