[ORC] Change LogicalDylib::LogicalModuleHandle from an iterator to an index.
authorLang Hames <lhames@gmail.com>
Fri, 5 Aug 2016 18:26:56 +0000 (18:26 +0000)
committerLang Hames <lhames@gmail.com>
Fri, 5 Aug 2016 18:26:56 +0000 (18:26 +0000)
commit2a04a99ce677cf8fbc8b9fc0c36693e44f147c5d
treea1f7970cc8fa87c4720a885fdcbb5115b8967c4d
parentfd063e796f4e1b9b9c8fcc2cf26f5d82b662d581
[ORC] Change LogicalDylib::LogicalModuleHandle from an iterator to an index.

This prevents handles from being invalidated (through iterator invalidation)
when new modules are added.

No test-case yet: This bug was uncovered during work on an upcoming patch for
weak symbol support and the testcase for that feature will implicitly test for
correct behavior here.

llvm-svn: 277847
llvm/include/llvm/ExecutionEngine/Orc/LogicalDylib.h