[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 09:26:16 PDT 2017


schweitz added a comment.

In https://reviews.llvm.org/D36480#836780, @aprantl wrote:

> With this patch's encoding I'm a little worried by the discrepancy between the size and tag.
>  What about representing strings as `!DIDerivedType(tag: DW_TAG_string_type, baseType: !DIBasicType(name: "character", size: 8, align: 8, encoding: DW_ATE_signed)` instead?
>  The patch would be just as simple (allowing the string type tag in DIDerivedType instead), but the representation would be closer to what will be emitted in the end.


CHARACTER(n) is an intrinsic type in Fortran, not a derived type. The CHARACTER type has a length type parameter.


https://reviews.llvm.org/D36480





More information about the llvm-commits mailing list