]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/dwarf: use reference in cutu_reader::cutu_reader interface
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 25 Mar 2025 20:32:21 +0000 (16:32 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 26 Mar 2025 14:11:27 +0000 (10:11 -0400)
commitad172865ca67ee66f9a7a2f87f62564c8fda3538
tree520d5add055babdb3e2fe66e829a18234d396cdc
parent861d98ffceaadf8dc14a33c69a3d6fc8f88e10b6
gdb/dwarf: use reference in cutu_reader::cutu_reader interface

Change some parameters to be references instead of pointers, when the
value must not be nullptr.  I'd like to do this more of this kind of
change, but I have to limit the scope of the change, otherwise there's
just no end (and some local variables could also be turned into
references).  So for now, just do it the cutu_reader constructors.

Change-Id: I9442c6043726981d58f9b141f516c590c0a71bcc
Approved-By: Tom Tromey <tom@tromey.com>
gdb/dwarf2/cooked-indexer.c
gdb/dwarf2/read.c
gdb/dwarf2/read.h