Reorder the operations in
authorJason Molenda <jmolenda@apple.com>
Wed, 13 Mar 2019 23:34:20 +0000 (23:34 +0000)
committerJason Molenda <jmolenda@apple.com>
Wed, 13 Mar 2019 23:34:20 +0000 (23:34 +0000)
commit97866d74db72157c3e3cc22d6805f22e204c01b7
treee976d4459e5475db906e917cfc439eb9331980bf
parent85ace6269febdfe667a3d09eb38cb926d798725b
Reorder the operations in
DynamicLoaderDarwinKernel::KextImageInfo::LoadImageUsingMemoryModule a
bit so that we only read the binaries out of memory once we've
determined that we can find a real binary on the local system.

Previously, lldb would read all of the kext binaries out of memory
and then determine if it had the local copy.  The kext table gives
us most the information we need (address, name, uuid) so lldb only
needs the actual in-memory load commands when it comes time to set
the section load addresses.  Delay reading until that point for all
the kexts.

NFC; doing the operations in a different order.

<rdar://problem/41181173>

llvm-svn: 356108
lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp