Commit Graph

3 Commits

Author SHA1 Message Date
Adrian Prantl 69fce12c38 Add a debug info testcase for the trvial_abi attribute.
llvm-svn: 327078
2018-03-08 23:11:46 +00:00
Adrian Prantl 6c63a6c9a1 Remove redundant test
llvm-svn: 321846
2018-01-05 01:28:59 +00:00
Adrian Prantl 6c5f03a1b2 Debug Info: Support DW_AT_calling_convention on composite types.
This implements the DWARF 5 feature described at
http://www.dwarfstd.org/ShowIssue.php?issue=141215.1

This allows a consumer to understand whether a composite data type is
trivially copyable and thus should be passed by value instead of by
reference. The canonical example is being able to distinguish the
following two types:

  // S is not trivially copyable because of the explicit destructor.
  struct S {
     ~S() {}
  };

  // T is a POD type.
  struct T {
    ~T() = default;
  };

<rdar://problem/36034993>
Differential Revision: https://reviews.llvm.org/D41039

llvm-svn: 321845
2018-01-05 01:13:52 +00:00