This patch implements the dwarfdump option --find=<name>.
This option looks for a DIE in the accelerator tables and dumps it if found.
This initial patch only adds support for .apple_names to keep the review small, adding the other sections and pubnames support should be trivial though.
Details
Diff Detail
Event Timeline
include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h | ||
---|---|---|
23 | Forward declaration is redundant with the above #include. | |
test/tools/llvm-dwarfdump/X86/find.test | ||
12 | Maybe another CHECK-NOT to prove the name is associated with this subprogram? Might be overkill but we usually do something like that. Similarly for the MULTI cases below. |
include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h | ||
---|---|---|
70 | default? | |
72 | Should this be const /ref/ return? (or non-const value, though iterators that return by value are problematic) & what about operator->? Should this class use one of the iterator facade helpers from llvm/ADT/iterator.h? | |
77 | Prefer direct init over copy init: X y = z; rather than: X y(z); where possible. |
Forward declaration is redundant with the above #include.