This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Improve pretty printing of obj type ref.
- From: Richard Biener <rguenther at suse dot de>
- To: Jan Hubicka <hubicka at ucw dot cz>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 25 Sep 2013 11:50:25 +0200 (CEST)
- Subject: Re: Improve pretty printing of obj type ref.
- Authentication-results: sourceware.org; auth=none
- References: <20130925094707 dot GA21635 at kam dot mff dot cuni dot cz>
On Wed, 25 Sep 2013, Jan Hubicka wrote:
> Hi,
> the type of class whose method is called used to be determinable (in wrong way)
> by looking up type of OBJ_TYPE_REF_OBJECT parameter. Now we determine it from
> the method type of the call and this is not printed anywhere.
> This adds a "cast" of the OBj_TYPE_REF_OBJECT so i can see it easily.
>
> Bootstrapped/regtested x86_64-linux, OK?
>
> Honza
>
> * tree-pretty-print.c (dump_generic_node): Print class type of OBJ_TYPE_REF.
> Index: tree-pretty-print.c
> ===================================================================
> --- tree-pretty-print.c (revision 202838)
> +++ tree-pretty-print.c (working copy)
> @@ -2040,6 +2040,12 @@ dump_generic_node (pretty_printer *buffe
> pp_string (buffer, "OBJ_TYPE_REF(");
> dump_generic_node (buffer, OBJ_TYPE_REF_EXPR (node), spc, flags, false);
> pp_semicolon (buffer);
> + if (virtual_method_call_p (node))
> + {
> + pp_string (buffer, "(");
> + dump_generic_node (buffer, obj_type_ref_class (node), spc, flags, false);
I think you want flags | TDF_SLIM here.
Ok with that change.
Richard.