[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)
commit40ec40a17940e1ddbe2e3dc57efc9cdcfd36fe12
treea332b09270fc089b837b524de9248f296165ba43
parent5eb7481d035dc9ad67335d2e36ee2aab1c010025
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238983 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/MachO.h
lib/Object/MachOObjectFile.cpp
tools/llvm-objdump/MachODump.cpp
tools/llvm-size/llvm-size.cpp
tools/macho-dump/macho-dump.cpp