[PATCH] D82173: [DWARFYAML][debug_info] Use 'AbbrCode' to index the abbreviation.

Xing GUO via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 19 03:12:08 PDT 2020


Higuoxing created this revision.
Higuoxing added reviewers: jhenderson, grimar, MaskRay.
Herald added subscribers: llvm-commits, arphaman, hiraditya, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.
Higuoxing added a parent revision: D82073: [ObjectYAML][ELF] Add support for emitting the .debug_info section..

Before this patch, we use `(uint32_t)AbbrCode - (uint32_t)FirstAbbrCode` to index the abbreviation. It's impossible for we to use the preceeding abbreviation of the previous one (e.g., if the previous DIE's `AbbrCode` is 2, we are unable to use the abbreviation with index 1). In this patch, we use `AbbrCode` to index the abbreviation directly.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D82173

Files:
  llvm/lib/ObjectYAML/DWARFVisitor.cpp
  llvm/test/tools/yaml2obj/ELF/DWARF/debug-info.yaml

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82173.271984.patch
Type: text/x-patch
Size: 4595 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200619/8caca97b/attachment.bin>


More information about the llvm-commits mailing list