diff options
author | Arnaud Charlet <charlet@adacore.com> | 2010-09-07 16:12:09 +0000 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2010-09-07 18:12:09 +0200 |
commit | 4cc2a7227aa8965ce50784b13a0c87b18082fdde (patch) | |
tree | ba8a4e18517bf42370b70903afcb2f8ee1cd056c /gcc/cp/cp-tree.h | |
parent | 86e033e21a4f61128173b4b1f4dedf07616068d7 (diff) | |
download | gcc-4cc2a7227aa8965ce50784b13a0c87b18082fdde.zip gcc-4cc2a7227aa8965ce50784b13a0c87b18082fdde.tar.gz gcc-4cc2a7227aa8965ce50784b13a0c87b18082fdde.tar.bz2 |
cp-tree.h (build_enumerator): Add new location_t parameter.
* cp-tree.h (build_enumerator): Add new location_t parameter.
(build_lang_decl_loc): New function.
* decl.c (build_enumerator): New parameter loc. Use it when calling
build_decl. Replace build_lang_decl with build_lang_decl_loc.
* pt.c (tsubst_enum): Adjust call to build_enumerator.
* parser.c (cp_parser_enumerator_definition): Ditto.
* lex.c (build_lang_decl_loc): New function.
From-SVN: r163959
Diffstat (limited to 'gcc/cp/cp-tree.h')
-rw-r--r-- | gcc/cp/cp-tree.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index dce28df..cb3b55f 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -4771,7 +4771,7 @@ extern tree xref_tag_from_type (tree, tree, tag_scope); extern bool xref_basetypes (tree, tree); extern tree start_enum (tree, tree, bool); extern void finish_enum (tree); -extern void build_enumerator (tree, tree, tree); +extern void build_enumerator (tree, tree, tree, location_t); extern tree lookup_enumerator (tree, tree); extern void start_preparsed_function (tree, tree, int); extern int start_function (cp_decl_specifier_seq *, const cp_declarator *, tree); @@ -4943,6 +4943,7 @@ extern void yyungetc (int, int); extern tree unqualified_name_lookup_error (tree); extern tree unqualified_fn_lookup_error (tree); extern tree build_lang_decl (enum tree_code, tree, tree); +extern tree build_lang_decl_loc (location_t, enum tree_code, tree, tree); extern void retrofit_lang_decl (tree); extern tree copy_decl (tree); extern tree copy_type (tree); |