[Object] Allow iterating over an IRObjectFile's modules
authorJustin Bogner <mail@justinbogner.com>
Wed, 27 Jun 2018 17:58:32 +0000 (17:58 +0000)
committerJustin Bogner <mail@justinbogner.com>
Wed, 27 Jun 2018 17:58:32 +0000 (17:58 +0000)
commit2b1327b9fffc811f36c2386cfcad5545bcb6fbba
tree87b53f8acf83ac7c1224610acd9948cdcaee0c1a
parentf472f6159a0d42d6f2144c457ea32543ff5410a1
[Object] Allow iterating over an IRObjectFile's modules

If you've already loaded an IRObjectFile and need access to the
Modules themselves you shouldn't have to reparse a byte stream to do
it. Adds an accessor for the modules in IRObjectFile.

llvm-svn: 335759
llvm/include/llvm/Object/IRObjectFile.h