[Object, MachO] Introduce MachOObjectFile::load_commands() range iterator.
authorAlexey Samsonov <vonosmas@gmail.com>
Wed, 3 Jun 2015 22:19:36 +0000 (22:19 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Wed, 3 Jun 2015 22:19:36 +0000 (22:19 +0000)
commitd319c4fbbc10e4f6f7fd16be65aed9c8e769e8b5
tree56767a48f0778e8467630d5c6c54cc325e6f7b52
parent212fdde20540d79cf227f3e5a5e008099aad37b8
[Object, MachO] Introduce MachOObjectFile::load_commands() range iterator.

Summary:
Now users don't have to manually deal with getFirstLoadCommandInfo() /
getNextLoadCommandInfo(), calculate the number of load segments, etc.

No functionality change.

Test Plan: regression test suite

Reviewers: rafael, lhames, loladiro

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D10144

llvm-svn: 238983
llvm/include/llvm/Object/MachO.h
llvm/lib/Object/MachOObjectFile.cpp
llvm/tools/llvm-objdump/MachODump.cpp
llvm/tools/llvm-size/llvm-size.cpp
llvm/tools/macho-dump/macho-dump.cpp