]> granicus.if.org Git - llvm/commit
Debug Info: Support for DW_AT_export_symbols for anonymous structs
authorShafik Yaghmour <syaghmour@apple.com>
Fri, 23 Aug 2019 17:19:21 +0000 (17:19 +0000)
committerShafik Yaghmour <syaghmour@apple.com>
Fri, 23 Aug 2019 17:19:21 +0000 (17:19 +0000)
commitd2340dbfa168a724db46b08eb5e7cd5f93604ff2
tree0b4e4903f8448752905d17048dbd53d1ad9473a3
parent4e272f536e93a74f7a28c4380b186c515828171c
Debug Info: Support for DW_AT_export_symbols for anonymous structs

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 a new (DI)flag to LLVM metadata:

ExportSymbols

Differential Revision: https://reviews.llvm.org/D66352

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369781 91177308-0d34-0410-b5e6-96231b3b80d8
docs/LangRef.rst
include/llvm/IR/DebugInfoFlags.def
include/llvm/IR/DebugInfoMetadata.h
test/Assembler/export-symbol-anonymous-class.ll [new file with mode: 0644]