diff options
author | Paul Robinson <paul.robinson@sony.com> | 2018-01-18 20:33:35 +0000 |
---|---|---|
committer | Paul Robinson <paul.robinson@sony.com> | 2018-01-18 20:33:35 +0000 |
commit | 8181d23b3db2199e37fea9c93bc42a2a6a5ade98 (patch) | |
tree | 429d7cbfb19950174b50d528af976790d3769e7b /llvm/lib/Support/NativeFormatting.cpp | |
parent | 9463321da62637be21acdf06460ad2848868c331 (diff) | |
download | llvm-8181d23b3db2199e37fea9c93bc42a2a6a5ade98.zip llvm-8181d23b3db2199e37fea9c93bc42a2a6a5ade98.tar.gz llvm-8181d23b3db2199e37fea9c93bc42a2a6a5ade98.tar.bz2 |
[DWARFv5] Number the line-table's directory array correctly.
The compilation directory has always been #0, but as of DWARF v5 it is
explicitly listed in the line-table section instead of implicitly
being a reference to the compile_unit DIE's DW_AT_comp_dir attribute.
This means the dumper should number the dumped array starting with 0
or 1 depending on the DWARF version of the line table.
References in the generated DWARF are correct, it's just the dumper
that was wrong. Also some assembler-coded tests were similarly
confused about directory numbers.
llvm-svn: 322884
Diffstat (limited to 'llvm/lib/Support/NativeFormatting.cpp')
0 files changed, 0 insertions, 0 deletions