[all-commits] [llvm/llvm-project] 936954: [DebugInfo][DWARF] Add doesFormBelongToClass funct...

avl-llvm via All-commits all-commits at lists.llvm.org
Thu Mar 9 09:23:29 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 936954631b57a3dd18dec62c847a8d6305b37385
      https://github.com/llvm/llvm-project/commit/936954631b57a3dd18dec62c847a8d6305b37385
  Author: Alexey Lapshin <a.v.lapshin at mail.ru>
  Date:   2023-03-09 (Thu, 09 Mar 2023)

  Changed paths:
    M llvm/include/llvm/DebugInfo/DWARF/DWARFFormValue.h
    M llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp
    M llvm/unittests/DebugInfo/DWARF/DWARFFormValueTest.cpp

  Log Message:
  -----------
  [DebugInfo][DWARF] Add doesFormBelongToClass function.

The result of DWARFFormValue::isFormClass depends on DWARF version in some cases.
The current implementation takes DWARF version from the stored DWARFUnit.
If there is no stored DWARFUnit then the current behavior is to assume
DwarfVersion <= 3. This patch adds new function which has a DWARF version as a
parameter so it is possible to check form class for various DWARF versions.

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




More information about the All-commits mailing list