FailedChanges

Summary

  1. [DWARFYAML] Add support for emitting multiple abbrev tables. (details)
  2. [DWARFYAML] Add support for referencing different abbrev tables. (details)
Commit e151acc073ab8b311dbaee11a6bc4cf16cef0575 by Xing
[DWARFYAML] Add support for emitting multiple abbrev tables.

This patch adds support for emitting multiple abbrev tables. Currently,
compilation units will always reference the first abbrev table.

Reviewed By: jhenderson, labath

Differential Revision: https://reviews.llvm.org/D86194
The file was modifiedllvm/test/tools/yaml2obj/ELF/DWARF/debug-info.yaml (diff)
Commit f7ff0ace96db9164dcde232c36cab6519ea4fce8 by Xing
[DWARFYAML] Add support for referencing different abbrev tables.

This patch adds support for referencing different abbrev tables. We use
'ID' to distinguish abbrev tables and use 'AbbrevTableID' to explicitly
assign an abbrev table to compilation units.

The syntax is:
```
debug_abbrev:
  - ID: 0
    Table:
      ...
  - ID: 1
    Table:
      ...
debug_info:
  - ...
    AbbrevTableID: 1 ## Reference the second abbrev table.
  - ...
    AbbrevTableID: 0 ## Reference the first abbrev table.
```

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D83116
The file was modifiedllvm/test/tools/yaml2obj/ELF/DWARF/debug-info.yaml (diff)
The file was modifiedllvm/lib/ObjectYAML/DWARFEmitter.cpp (diff)
The file was modifiedllvm/lib/ObjectYAML/DWARFYAML.cpp (diff)
The file was modifiedllvm/include/llvm/ObjectYAML/DWARFYAML.h (diff)
The file was modifiedllvm/test/tools/yaml2obj/ELF/DWARF/debug-abbrev.yaml (diff)
The file was modifiedllvm/test/ObjectYAML/MachO/DWARF-debug_abbrev.yaml (diff)
The file was modifiedllvm/test/ObjectYAML/MachO/DWARF5-debug_info.yaml (diff)
The file was modifiedllvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp (diff)
The file was modifiedllvm/lib/ObjectYAML/ELFEmitter.cpp (diff)
The file was modifiedllvm/test/ObjectYAML/MachO/DWARF-debug_info.yaml (diff)
The file was modifiedllvm/tools/obj2yaml/dwarf2yaml.cpp (diff)