[DebugInfo] Expose Fortran array debug info attributes through DIBuilder.
authorAdrian Prantl <aprantl@apple.com>
Wed, 28 Oct 2020 19:26:44 +0000 (12:26 -0700)
committerAdrian Prantl <aprantl@apple.com>
Wed, 28 Oct 2020 20:13:35 +0000 (13:13 -0700)
commit0b2b50a5d2893af47466f191771d20c9993a1624
tree1174b550903c5ce16e1072093ec8daac323da055
parenta6dd01afa3d5902203d04a72e0b478078f796a35
[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 Review: https://reviews.llvm.org/D90323
llvm/include/llvm/IR/DIBuilder.h
llvm/lib/IR/DIBuilder.cpp
llvm/unittests/IR/DebugInfoTest.cpp