mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 15:16:09 +00:00

This implements the DWARF 5 feature described in: http://dwarfstd.org/ShowIssue.php?issue=141212.1 To support recognizing anonymous structs: struct A { struct { // Anonymous struct int y; }; } a; This patch adds support in CGDebugInfo::CreateLimitedType(...) for this new flag and an accompanying test to verify this feature. Differential Revision: https://reviews.llvm.org/D66667 llvm-svn: 370107
12 lines
450 B
C++
12 lines
450 B
C++
// RUN: %clang_cc1 -emit-llvm -debug-info-kind=standalone -triple %itanium_abi_triple %s -o - | FileCheck %s
|
|
|
|
// CHECK: [[SCOPE:![0-9]+]] = distinct !DICompositeType({{.*}}flags: DIFlagTypePassByValue
|
|
// CHECK: !DICompositeType(tag: DW_TAG_structure_type, scope: [[SCOPE]]
|
|
// CHECK-SAME: DIFlagExportSymbols | DIFlagTypePassByValue
|
|
struct A {
|
|
// Anonymous class exports its symbols into A
|
|
struct {
|
|
int y;
|
|
};
|
|
} a;
|