[PATCH] D151932: Add dsymutil dwarf5 tests for darwin

Alexey Lapshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 4 02:18:18 PDT 2023


avl added a comment.

In D151932#4390596 <https://reviews.llvm.org/D151932#4390596>, @fdeazeve wrote:

> 2. Is the traditional approach for dsymutil tests to have a YAML object file? I see that the same directory has tests that assemble an object file from `.ll` files (by calling `llc`) and also tests that assembly an object file from assembly (`.s`) by calling `llvm-mc`. Both seem shorter / easier to follow, but I have never looked much into those tests.

using YAML object file seems OK if debug info is presented in an explicit way:

  DWARF:
    debug_abbrev:
      - Table:
        - Tag:      DW_TAG_compile_unit
          Children: DW_CHILDREN_yes
          Attributes:
            - Attribute: DW_AT_producer
              Form:      DW_FORM_string
            - Attribute: DW_AT_language
              Form:      DW_FORM_data2
            - Attribute: DW_AT_name
              Form:      DW_FORM_string
    debug_info:
      - Version: 4
        Entries:
          - AbbrCode: 1
            Values:
              - CStr: by_hand
              - Value:  0x04
              - CStr: CU1


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D151932/new/

https://reviews.llvm.org/D151932



More information about the llvm-commits mailing list