[DWARFYAML] Abbrev codes in a new abbrev table should start from 1 (by default).
authorXing GUO <higuoxing@gmail.com>
Fri, 28 Aug 2020 10:42:19 +0000 (18:42 +0800)
committerXing GUO <higuoxing@gmail.com>
Fri, 28 Aug 2020 13:18:11 +0000 (21:18 +0800)
commitf20e6c7253859454c2f39adae19d80a31a0456a9
treec639300262f50f18e71fa307e38dcf15c6a35de0
parent248a67f1445d716cd18a588db35328d1f5b501c8
[DWARFYAML] Abbrev codes in a new abbrev table should start from 1 (by default).

The abbrev codes in a new abbrev table should start from 1 (by default),
rather than inherit the value from the code in the previous table.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D86545
llvm/lib/ObjectYAML/DWARFEmitter.cpp
llvm/test/tools/yaml2obj/ELF/DWARF/debug-abbrev.yaml