OSDN Git Service

[llvm-objcopy] Refactor code to include initialize method
authorJake Ehrlich <jakehehrlich@google.com>
Mon, 25 Sep 2017 20:37:28 +0000 (20:37 +0000)
committerJake Ehrlich <jakehehrlich@google.com>
Mon, 25 Sep 2017 20:37:28 +0000 (20:37 +0000)
commit408651e8a479984f15d964aec6ad5258fa84acf8
tree78ea84064e08903d79416bfc9bd71d2b5445d105
parent00b5bff2c2d3190f67364386418caa13021438c2
[llvm-objcopy] Refactor code to include initialize method

This change refactors some of the code to allow for some code
deduplication in later diffs as well as just to make adding a new
section type more self contained to the class itself. The idea for this
was first mentioned by James in D 37915 and will be used in that change
as recommended.

This change follows changes for dynamic sections but precedes support
for dynamic relocations.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314148 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-objcopy/Object.cpp
tools/llvm-objcopy/Object.h