I thought that this comment could be updated to clarify what this vector
holds and what it is used for.
Change-Id: I0e1968c8c6455b49aa156669c43ea8c436c59e45
Approved-By: Tom Tromey <tom@tromey.com>
std::vector<dwarf2_section_info> types;
- /* Table of all the compilation units. This is used to locate
- the target compilation unit of a particular reference. */
+ /* Table of all compilation and type units.
+
+ The order of this vector matters, because it is used to locate targets of
+ DW_FORM_ref_addr attributes (reference by section offset). */
std::vector<dwarf2_per_cu_up> all_units;
/* Number of compilation and type units in the ALL_UNITS vector. */