Re: [PATCH 1/5] Simplify dump_context by adding a dump_loc member function

2018-07-31 Thread Richard Biener
On Fri, Jul 27, 2018 at 11:48 PM David Malcolm wrote: > > This patch removes some duplicated code in dumpfile.c by > reimplementing the various dump_foo_loc calls in terms of dump_foo. OK. Richard. > gcc/ChangeLog: > * dump-context.h (dump_context::dump_loc): New decl. > * dumpf

[PATCH 1/5] Simplify dump_context by adding a dump_loc member function

2018-07-27 Thread David Malcolm
This patch removes some duplicated code in dumpfile.c by reimplementing the various dump_foo_loc calls in terms of dump_foo. gcc/ChangeLog: * dump-context.h (dump_context::dump_loc): New decl. * dumpfile.c (dump_context::dump_loc): New member function. (dump_context::dump_g