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/test/MC/ARM/dwarf-asm-multiple-sections.s | |
parent | 9463321da62637be21acdf06460ad2848868c331 (diff) | |
download | bcm5719-llvm-8181d23b3db2199e37fea9c93bc42a2a6a5ade98.tar.gz bcm5719-llvm-8181d23b3db2199e37fea9c93bc42a2a6a5ade98.zip |
[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/test/MC/ARM/dwarf-asm-multiple-sections.s')
-rw-r--r-- | llvm/test/MC/ARM/dwarf-asm-multiple-sections.s | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/MC/ARM/dwarf-asm-multiple-sections.s b/llvm/test/MC/ARM/dwarf-asm-multiple-sections.s index 1f13a5abf9c..a873e505f73 100644 --- a/llvm/test/MC/ARM/dwarf-asm-multiple-sections.s +++ b/llvm/test/MC/ARM/dwarf-asm-multiple-sections.s @@ -54,7 +54,7 @@ b: // DWARF-DL: .debug_line contents: // DWARF-DL: version: [[DWVER]] // DWARF-DL-5: address_size: 4 -// DWARF-DL-5: include_directories[ 1] = '' +// DWARF-DL-5: include_directories[ 0] = '' // DWARF-DL: file_names[ 1] {{.*}} <stdin> // DWARF-DL: 0x0000000000000000 17 0 1 0 0 is_stmt // DWARF-DL-NEXT: 0x0000000000000004 17 0 1 0 0 is_stmt end_sequence |