[Lldb-commits] [PATCH] D44074: ObjectFileMachO: split CreateSections mega-function into more manageable chunks
Pavel Labath via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Sat Mar 3 17:31:42 PST 2018
labath created this revision.
labath added reviewers: clayborg, davide.
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.
https://reviews.llvm.org/D44074
Files:
source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44074.136932.patch
Type: text/x-patch
Size: 52948 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20180304/91a534dc/attachment-0001.bin>
More information about the lldb-commits
mailing list