[PATCH] D59620: [llvm-pdbutil] Add -type-ref-stats to help find unused type info

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 21 10:51:55 PDT 2019


rnk added a comment.

In D59620#1438238 <https://reviews.llvm.org/D59620#1438238>, @zturner wrote:

> The reason I put the variable with the decltype is because it's the easiest way to force the debugger to deal with the cycle.  Without that, sure you can generate a cycle in the debug info, but it's not clear under what conditions the debugger would actually require that record.
>
> This way, it's easy to add a watch in the debugger for `foo.node` and the debugger is forced to resolve the cycle.


Well, MSVC rejected it, so I had to remove it: https://gcc.godbolt.org/z/0V3lLY ¯\_(ツ)_/¯
If it did work, they'd still use the unique name.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D59620





More information about the llvm-commits mailing list