[PATCH] D113460: [llvm-dwarfdump] Add support for filtering by DIE tags

William Woodruff via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 9 07:08:08 PST 2021


woodruffw added a comment.

In D113460#3117451 <https://reviews.llvm.org/D113460#3117451>, @dblaikie wrote:

> Any particular motivation/need for this?

Yep. I work on a source and binary static analysis system that includes a DWARF information component. Our input programs can be extremely large (we effectively do LTO to bring everything into a single `llvm::Module`) and sometimes contain hundreds of identically named local variables, globals, formal parameters, etc. When debugging the DWARF information that LLVM emits, we use `llvm-objdump` to filter down to the problematic DIEs. But this can still leave hundreds of DIEs, particularly when the problematic name is something generic like `len`. Having the `--tag`  option would allow us to additionally filter by the tag we're interested in, e.g. including only `DW_TAG_formal_parameter`s that match `DW_TAG_name=len`.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D113460



More information about the llvm-commits mailing list