[PATCH] D36480: [LLVM] Change to Verifier to allow Fortran CHARACTER types in debug information

Adrian Prantl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 9 10:18:49 PDT 2017


aprantl added a comment.

I made quick experiment using this representation:

`!21 = !DIDerivedType(tag: DW_TAG_string_type, name: "character(3)", size: 24, baseType: !DIBasicType(size: 8, align: 8, encoding: DW_ATE_signed))`

which comes out as

  0x00000056:   DW_TAG_string_type
                  DW_AT_type	(cu + 0x0060 => {0x00000060})
                  DW_AT_name	( .debug_str[0x00000026] = "character(3)")
                  DW_AT_byte_size	(0x03)
  
  0x00000060:   DW_TAG_base_type
                  DW_AT_encoding	(DW_ATE_signed)
                  DW_AT_byte_size	(0x00)

This still has the superfluous base type, but it appears to conform to the DWARF specification. Would something like this work for you?


https://reviews.llvm.org/D36480





More information about the llvm-commits mailing list