[all-commits] [llvm/llvm-project] 3a48a6: [DWARFYAML][debug_info] Use 'AbbrCode' to index th...

Xing GUO via All-commits all-commits at lists.llvm.org
Mon Jun 22 06:30:10 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3a48a632d00ef1c98042140f402337fe13cdff52
      https://github.com/llvm/llvm-project/commit/3a48a632d00ef1c98042140f402337fe13cdff52
  Author: Xing GUO <higuoxing at gmail.com>
  Date:   2020-06-22 (Mon, 22 Jun 2020)

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

  Log Message:
  -----------
  [DWARFYAML][debug_info] Use 'AbbrCode' to index the abbreviation.

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.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D82173




More information about the All-commits mailing list