]> granicus.if.org Git - llvm/commit
llvm-dwarfdump: implement --find for .apple_names
authorAdrian Prantl <aprantl@apple.com>
Thu, 28 Sep 2017 18:10:52 +0000 (18:10 +0000)
committerAdrian Prantl <aprantl@apple.com>
Thu, 28 Sep 2017 18:10:52 +0000 (18:10 +0000)
commit81f2386de4213c673b7a1ddb6cf38b0e267be3d0
treed1053e2b02f94c5737971af0f43894d69c53a6c7
parent5ed9e8f1fe1a70347f93a5e3218d5e0a51fe0dd4
llvm-dwarfdump: implement --find for .apple_names

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.

Differential Revision: https://reviews.llvm.org/D38282

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314439 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/BinaryFormat/Dwarf.h
include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h
include/llvm/DebugInfo/DWARF/DWARFContext.h
lib/BinaryFormat/Dwarf.cpp
lib/CodeGen/AsmPrinter/DwarfAccelTable.h
lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp
lib/DebugInfo/DWARF/DWARFContext.cpp
test/tools/llvm-dwarfdump/X86/find.test [new file with mode: 0644]
test/tools/llvm-dwarfdump/cmdline.test
tools/llvm-dwarfdump/llvm-dwarfdump.cpp