Don't duplicate the logic that detects if a section can/should be loaded (NFC)
authorGreg Clayton <gclayton@apple.com>
Fri, 21 Dec 2018 17:04:18 +0000 (17:04 +0000)
committerGreg Clayton <gclayton@apple.com>
Fri, 21 Dec 2018 17:04:18 +0000 (17:04 +0000)
commit57577c06343157d4ddf3d224415e2050eff46be9
tree80d7b5f9a360fd2c915697e768588e8e06a68a7b
parentfeb1923c7ada5a167e85d57b479ec40f3c558a03
Don't duplicate the logic that detects if a section can/should be loaded (NFC)

Prior to this there were 3 places that were duplicating the logic to detect if a section can/should be loaded and some were doing things a bit differently. Now it is all centralized in one place and it is done correctly.

llvm-svn: 349926
lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h