diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2009-04-22 07:28:48 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2009-04-22 07:28:48 +0000 |
commit | 0fb2335d4ccfbc928951ddeba5ead045a1dff172 (patch) | |
tree | 950ce5c9336788a41cdb4bf91464fab566a2861b /gcc/ada/gcc-interface/gigi.h | |
parent | 8ff1dd836408a49359dbac9321678ccf6d33a6f9 (diff) | |
download | gcc-0fb2335d4ccfbc928951ddeba5ead045a1dff172.zip gcc-0fb2335d4ccfbc928951ddeba5ead045a1dff172.tar.gz gcc-0fb2335d4ccfbc928951ddeba5ead045a1dff172.tar.bz2 |
fe.h (Get_External_Name): Declare.
* fe.h (Get_External_Name): Declare.
* gcc-interface/gigi.h (concat_id_with_name): Rename to...
(concat_name): ...this.
* gcc-interface/decl.c (gnat_to_gnu_entity): Rename gnu_entity_id to
gnu_entity_name and adjust for above renaming.
<E_Access_Type>: Use create_concat_name to get the name of the various
types associated with unconstrained array types.
(make_aligning_type): Adjust for above renaming.
(maybe_pad_type): Likewise.
(components_to_record): Likewise. Use get_identifier_with_length for
the encoding of the variant.
(get_entity_name): Use get_identifier_with_length.
(create_concat_name): Likewise. Use Get_External_Name if no suffix.
Do not fiddle with Name_Buffer.
(concat_id_with_name): Rename to...
(concat_name): ...this. Use get_identifier_with_length. Do not fiddle
with Name_Buffer.
* gcc-interface/utils.c (rest_of_record_type_compilation): Adjust for
above renaming.
From-SVN: r146547
Diffstat (limited to 'gcc/ada/gcc-interface/gigi.h')
-rw-r--r-- | gcc/ada/gcc-interface/gigi.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/gcc/ada/gcc-interface/gigi.h b/gcc/ada/gcc-interface/gigi.h index 1daec92..f4113f8 100644 --- a/gcc/ada/gcc-interface/gigi.h +++ b/gcc/ada/gcc-interface/gigi.h @@ -168,20 +168,21 @@ extern tree substitute_in_type (tree t, tree f, tree r); needed to represent the object. */ extern tree rm_size (tree gnu_type); -/* Given GNU_ID, an IDENTIFIER_NODE containing a name, and SUFFIX, a - string, return a new IDENTIFIER_NODE that is the concatenation of - the name in GNU_ID and SUFFIX. */ -extern tree concat_id_with_name (tree gnu_id, const char *suffix); - /* Return the name to be used for GNAT_ENTITY. If a type, create a fully-qualified name, possibly with type information encoding. Otherwise, return the name. */ extern tree get_entity_name (Entity_Id gnat_entity); -/* Return a name for GNAT_ENTITY concatenated with two underscores and - SUFFIX. */ +/* Return an identifier representing the external name to be used for + GNAT_ENTITY. If SUFFIX is specified, the name is followed by "___" + and the specified suffix. */ extern tree create_concat_name (Entity_Id gnat_entity, const char *suffix); +/* Given GNU_NAME, an IDENTIFIER_NODE containing a name and SUFFIX, a + string, return a new IDENTIFIER_NODE that is the concatenation of + the name followed by "___" and the specified suffix. */ +extern tree concat_name (tree gnu_name, const char *suffix); + /* If true, then gigi is being called on an analyzed but unexpanded tree, and the only purpose of the call is to properly annotate types with representation information. */ |