[DebugInfo] Expose Fortran array debug info attributes through DIBuilder.
authorAdrian Prantl <aprantl@apple.com>
Mon, 26 Oct 2020 23:09:35 +0000 (16:09 -0700)
committerAdrian Prantl <aprantl@apple.com>
Mon, 26 Oct 2020 23:23:36 +0000 (16:23 -0700)
commit5b3bf8b453b8cc00efd5269009a1e63c4442a30e
tree3f9391feda3e50431c18e92682e702df4dd81c6e
parent78f37b74da60ccdca200e457df195d58d76b3b8f
[DebugInfo] Expose Fortran array debug info attributes through DIBuilder.

The support of a few debug info attributes specifically for Fortran
arrays have been added to LLVM recently, but there's no way to take
advantage of them through DIBuilder. This patch extends
DIBuilder::createArrayType to enable the settings of those attributes.

Patch by Chih-Ping Chen!

Differential Revision: https://reviews.llvm.org/D89817
llvm/include/llvm/IR/DIBuilder.h
llvm/lib/IR/DIBuilder.cpp
llvm/unittests/IR/DebugInfoTest.cpp