]> granicus.if.org Git - llvm/commit
Add a variant of DWARFDie::find() and DWARFDie::findRecursively() that takes a llvm...
authorGreg Clayton <gclayton@apple.com>
Fri, 13 Jan 2017 22:32:12 +0000 (22:32 +0000)
committerGreg Clayton <gclayton@apple.com>
Fri, 13 Jan 2017 22:32:12 +0000 (22:32 +0000)
commitb24afca5bea91ce12c8689392718508b32f9e036
tree02f11ab09b144cd168cb3ae2334017dd2f35ba51
parent22eeda1bb91c330605f1510b470bc4c51583a206
Add a variant of DWARFDie::find() and DWARFDie::findRecursively() that takes a llvm::ArrayRef<dwarf::Attribute>.

This allows us efficiently look for more than one attribute, something that is quite common in DWARF consumption.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291967 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/DWARF/DWARFDie.h
lib/DebugInfo/DWARF/DWARFDie.cpp
lib/DebugInfo/DWARF/DWARFUnit.cpp
tools/dsymutil/DwarfLinker.cpp
unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp