[PATCH] D131179: [StripDeadDebugInfo] Drop dead CUs for const global expression

Alexey Bader via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 30 20:14:11 PDT 2023


bader added a comment.

In D131179#4235319 <https://reviews.llvm.org/D131179#4235319>, @aprantl wrote:

> I think your example makes perfect sense, but it sounds like this should be a feature that only `llvm-extract` or whatever tool you are using in the described workflow should enable. Generally you don't want "dead" constant's debug info stripped in a normal compilation because you still want to be able to see these constants in the debugger. In your workflow the compiler has special knowledge that this debug info will be available externally, so it makes sense there.

Is it okay to add an llvm::opt to customize this pass or there are better ways?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D131179



More information about the llvm-commits mailing list