Add DWARFUnit::getNumDIEs() and getDIEIndex()
authorFrederic Riss <friss@apple.com>
Wed, 28 Jan 2015 22:15:07 +0000 (22:15 +0000)
committerFrederic Riss <friss@apple.com>
Wed, 28 Jan 2015 22:15:07 +0000 (22:15 +0000)
commit33c9f17f2c6d09a617fe056dd871240c28938371
tree2ff069c1d6ec0deccd3c22f5b387941c834851bc
parent24373e35a496896590b653be16f6c2e3778f5761
Add DWARFUnit::getNumDIEs() and getDIEIndex()

Parsed DIEs are stored in a vector and that makes it easy to get their
indices. Having easy access to a DIE's index makes it possible to use
arrays or vectors to efficiently store/access DIE related information.

There's no test for that new functionality (I don't see how to test
it standalone), but it'll be used in a subsequent dsymutil commit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227381 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/DWARFUnit.h