This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: constify using_direct


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]