[PATCH] D36480: [LLVM] Change to Verifier to allow Fortran CHARACTER types in debug information
Eric Schweitz via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 9 10:31:25 PDT 2017
schweitz added a comment.
In https://reviews.llvm.org/D36480#836923, @aprantl wrote:
> 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?
No, that's even more verbose and not what's desired.
https://reviews.llvm.org/D36480
More information about the llvm-commits
mailing list