[all-commits] [llvm/llvm-project] e151ac: [DWARFYAML] Add support for emitting multiple abbr...

Xing GUO via All-commits all-commits at lists.llvm.org
Thu Aug 20 20:45:04 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e151acc073ab8b311dbaee11a6bc4cf16cef0575
      https://github.com/llvm/llvm-project/commit/e151acc073ab8b311dbaee11a6bc4cf16cef0575
  Author: Xing GUO <higuoxing at gmail.com>
  Date:   2020-08-21 (Fri, 21 Aug 2020)

  Changed paths:
    M llvm/test/tools/yaml2obj/ELF/DWARF/debug-info.yaml

  Log Message:
  -----------
  [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


  Commit: f7ff0ace96db9164dcde232c36cab6519ea4fce8
      https://github.com/llvm/llvm-project/commit/f7ff0ace96db9164dcde232c36cab6519ea4fce8
  Author: Xing GUO <higuoxing at gmail.com>
  Date:   2020-08-21 (Fri, 21 Aug 2020)

  Changed paths:
    M llvm/include/llvm/ObjectYAML/DWARFYAML.h
    M llvm/lib/ObjectYAML/DWARFEmitter.cpp
    M llvm/lib/ObjectYAML/DWARFYAML.cpp
    M llvm/lib/ObjectYAML/ELFEmitter.cpp
    M llvm/test/ObjectYAML/MachO/DWARF-debug_abbrev.yaml
    M llvm/test/ObjectYAML/MachO/DWARF-debug_info.yaml
    M llvm/test/ObjectYAML/MachO/DWARF5-debug_info.yaml
    M llvm/test/tools/yaml2obj/ELF/DWARF/debug-abbrev.yaml
    M llvm/test/tools/yaml2obj/ELF/DWARF/debug-info.yaml
    M llvm/tools/obj2yaml/dwarf2yaml.cpp
    M llvm/unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp

  Log Message:
  -----------
  [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


Compare: https://github.com/llvm/llvm-project/compare/16f27e1e18fd...f7ff0ace96db


More information about the All-commits mailing list