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)
commit5dca5efc0b14c1512cbd8a2902322e1b5b6617cb
tree9c13fa4f11536a24acfd69f12fdb24cc871bc086
parente7211bb56724b66ba1011084a2293d9d658a4afe
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

llvm-svn: 369781
llvm/docs/LangRef.rst
llvm/include/llvm/IR/DebugInfoFlags.def
llvm/include/llvm/IR/DebugInfoMetadata.h
llvm/test/Assembler/export-symbol-anonymous-class.ll [new file with mode: 0644]