[PATCH] D80242: [Clang] implement -fno-eliminate-unused-debug-types

Nick Desaulniers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 19 17:39:06 PDT 2020


nickdesaulniers added a comment.

`CXXRecordDecl` is a funny case, the AST looks like:

  |-CXXRecordDecl 0x5c661a8 <clang/baz.cpp:1:1, col:12> col:7 class foo definition
  | |-DefinitionData pass_in_registers empty aggregate standard_layout trivially_copyable pod trivial literal has_constexpr_non_copy_
  | `-CXXRecordDecl 0x5c662d0 <col:1, col:7> col:7 implicit class foo
  ...

There's probably a bunch more C++ cases I'm not thinking of.  Reading through gcc's test suite for `-fno-eliminate-unused-debug-types`, this feature doesn't have tests for anything with templates.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80242/new/

https://reviews.llvm.org/D80242





More information about the cfe-commits mailing list