OSDN Git Service

[lld-macho][nfc] Move some methods from InputFile to ObjFile
authorJez Ng <jezng@fb.com>
Wed, 2 Dec 2020 03:57:37 +0000 (19:57 -0800)
committerJez Ng <jezng@fb.com>
Tue, 8 Dec 2020 18:34:32 +0000 (10:34 -0800)
commit7b007ac0800babe750c58b1aead15e1c3e7f3b0f
treecde2502be70ca11ca091c8b5bf6582644b42ffa1
parent94e645f9cce8fba26b4aec069103794f1779065f
[lld-macho][nfc] Move some methods from InputFile to ObjFile

Additionally:
1. Move the helper functions in InputSection.h below the definition of
   `InputSection`, so the important stuff is on top
2. Remove unnecessary `explicit`

Reviewed By: #lld-macho, compnerd

Differential Revision: https://reviews.llvm.org/D92453
lld/MachO/InputFiles.cpp
lld/MachO/InputFiles.h
lld/MachO/InputSection.cpp
lld/MachO/InputSection.h