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

Paul Robinson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 1 09:39:33 PDT 2020


probinson added a comment.

In D80242#2045362 <https://reviews.llvm.org/D80242#2045362>, @nickdesaulniers wrote:

> For C++, I'd imagine:
>
>   class foo {};
>   using my_foo = foo;
>   template <typename bar>
>   struct baz {
>     bar my_bar;
>   };
>
>
> but it seems that `g++` doesn't emit debug info the for the templated struct.


There's no debug info for templates, only for instantiations of templates.  HTH.


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