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)
commitdc7b2869ab601e074b89650fe3ffc16d3da5823a
treedc0f84b453769ea78b5aafed02d99a0bd6b1ab0e
parentd26a1e5060dcf92c8508651526381a7309ab750d
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.

llvm-svn: 227381
llvm/include/llvm/DebugInfo/DWARFUnit.h