Add a multi-type version of iterateSymbolsWithType
Summary:
When using `folly::symbolizer`, it's very often that we want to use `iterateSymbolsWithType` iterate through symbols of a few types using the same callback. Current approach would require iterating the section multiple times.
This Diff adds `iterateSymbolsWithTypes`, which is basically just `iterateSymbolsWithType` but accepts symbol types.
This Diff also updated implementation of `getDefinitionByAddress` and `getSymbolByName` which currently does two iterations for `STT_OBJECT` and `STT_FUNC`.
Reviewed By: yfeldblum
Differential Revision:
D6279651
fbshipit-source-id:
a661dd15f18e4f2f63dbcca615f5a86d92e528ea