This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: constify using_direct
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 25 Jan 2013 10:25:14 -0700
- Subject: Re: constify using_direct
- References: <878v7vpo7b.fsf@fleche.redhat.com>
>>>>> "Tom" == Tom Tromey <tromey@redhat.com> writes:
Tom> I started this patch by noticing that cp_add_using_directive always
Tom> copies its arguments -- but at least in the DWARF case this is generally
Tom> wasting memory, as the arguments already have the proper lifetime.
Tom> I fixed this by adding a 'copy_names' argument to cp_add_using_directive.
Tom> Then I noticed that struct using_direct ought to have const members as
Tom> well.
I'm checking this in now.
Tom