]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Remove dwarf2_cu->per_cu->dwarf2_per_objfile references
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 25 Feb 2020 06:54:56 +0000 (01:54 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 12 May 2020 19:24:50 +0000 (15:24 -0400)
commitacd2b91adf005e0148f1cc10cf3405b8c0d7e9a5
treed2fb2a1e8a891dc0281b44564da785e61020f27c
parentb574ecffd1ee79b3d4c3190895ba3fc9eb9151ef
Remove dwarf2_cu->per_cu->dwarf2_per_objfile references

Change spots that access the dwarf2_per_objfile object through this
pattern:

  dwarf2_cu->per_cu->dwarf2_per_objfile

to

  dwarf2_cu->per_objfile

This allows removing many references to
dwarf2_per_cu_data::dwarf2_per_objfile.

Again, I hope the following ChangeLog entry will be fine.  I'd rather not
list all the affected functions, as it would be time-consuming and a bit
pointless.

gdb/ChangeLog:

* dwarf2/read.c: Replace
dwarf2_cu->per_cu->dwarf2_per_objfile references with
dwarf2_cu->per_objfile throughout.
gdb/dwarf2/read.c