[lto][patch] Change resolution format so it is easier to parse in C
Diego Novillo
dnovillo@google.com
Mon Sep 22 21:32:00 GMT 2008
On Mon, Sep 22, 2008 at 07:53, Rafael Espindola <espindola@google.com> wrote:
> diff --git a/lto-plugin/lto-plugin.c b/lto-plugin/lto-plugin.c
> index 2a7fd78..20a7b21 100644
> --- a/lto-plugin/lto-plugin.c
> +++ b/lto-plugin/lto-plugin.c
> @@ -260,23 +260,27 @@ all_symbols_read_handler (void)
> unsigned int i;
> /* FIXME: This should be a temporary file. */
> FILE *f = fopen ("resolution", "w");
> +
> + fprintf(f, "%d\n", num_claimed_files);
Space before '('.
> + fprintf(f, "%s %d\n", info->name, info->symtab.nsyms);
> +
Likewise.
> - fprintf(f, "%s\n%d %s\n",
> - info->name, slot, lto_resolution_str[resolution]);
> + fprintf(f, "%d %s\n",slot, lto_resolution_str[resolution]);
Likewise. Also, space after ','.
OK otherwise.
Diego.
More information about the Gcc-patches
mailing list