llvm-project/lldb/source/Plugins/ObjectFile/Mach-O
Pavel Labath b417eeaeb5 ObjectFileMachO: split CreateSections mega-function into more manageable chunks
Summary:
In an effort to understand the function's operation, I've split it into logical
pieces. Parsing of a single segment is moved to a separate function (and the
parsing state that is carried from one segment to another is explicitly
captured in the SegmentParsingContext object). I've also extracted some pieces
of code which were already standalone (validation of the segment load command,
determining the section type, determining segment permissions) into
separate functions.

Parsing of a single section within the segment should probably also be a
separate function, but I've left that for a separate patch.

This patch is intended to be NFC.

Reviewers: clayborg, davide

Subscribers: lldb-commits

Differential Revision: https://reviews.llvm.org/D44074

llvm-svn: 326791
2018-03-06 13:53:26 +00:00
..
CMakeLists.txt [CMake] [2/4] Update a batch of plugins 2017-01-31 22:23:49 +00:00
ObjectFileMachO.cpp ObjectFileMachO: split CreateSections mega-function into more manageable chunks 2018-03-06 13:53:26 +00:00
ObjectFileMachO.h ObjectFileMachO: split CreateSections mega-function into more manageable chunks 2018-03-06 13:53:26 +00:00