On Thu, Aug 25, 2011 at 18:14, Gabriel Charette <gchare@google.com> wrote: > This was the ...
13 years, 8 months ago
(2011-08-25 22:17:48 UTC)
#2
On Thu, Aug 25, 2011 at 18:14, Gabriel Charette <gchare@google.com> wrote:
> This was the last thing remaining on my cleanup list.
>
> As suggested by Steven and Jason in issue4550121, we should use
REAL_IDENTIFIER_TYPE_VALUE for IDENTIFIER_NODEs instead of TREE_TYPE (although
the former resolves to the later in its macro definition, this is more robust to
potential later changes to TREE_TYPE in trunk).
> This patch does that change.
>
> As mentionned by Steven in the same issue, we were accessing some fields
directly instead of correctly using their corresponding accessor macros.
> This patch makes use of the correct accessor macros for
pph_read/write_tree_body.
Nice! Thanks for this cleanup.
> 2011-08-25 Gabriel Charette <gchare@google.com>
>
> * pph-streamer-in.c (pph_read_tree_body): Use accessor macros for
> all fields. Use REAL_IDENTIFIER_TYPE_VALUE instead of TREE_TYPE
> for the IDENTIFIER_NODE case.
> * pph-streamer-out.c (pph_write_tree_body): Likewise.
OK.
Diego.
Issue 4965046: [pph] Use REAL_IDENTIFIER_TYPE_VALUE instead of TREE_TYPE for IDENTIFIER_NODE
(Closed)
Created 13 years, 8 months ago by Gabriel Charette
Modified 13 years, 8 months ago
Reviewers: Lawrence Crowl, Diego Novillo
Base URL:
Comments: 0