mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
1daff0ecf4
This patch adds support for DWARF attribute DW_AT_data_location. Summary: Dynamic arrays in fortran are described by array descriptor and data allocation address. Former is mapped to DW_AT_location and later is mapped to DW_AT_data_location. Testing: unit test cases added (hand-written) check llvm check debug-info Reviewed By: aprantl Differential Revision: https://reviews.llvm.org/D79592
7 lines
249 B
LLVM
7 lines
249 B
LLVM
; RUN: not llvm-as -disable-output <%s 2>&1 | FileCheck %s
|
|
|
|
!named = !{!0}
|
|
!0 = !DICompositeType(tag: DW_TAG_structure_type, name: "A", size: 64, dataLocation: !DIExpression(DW_OP_constu, 6789))
|
|
|
|
; CHECK: dataLocation can only appear in array type
|