This is motivated by an upcoming diff in which the
WordLiteralInputSection ctor sets itself up based on the value of its
section flags. As such, it needs to be passed the flags value as part
of its ctor parameters, instead of having them assigned after the fact
in parseSection(). While refactoring code to make that possible, I
figured it would make sense for the other InputSections to also take
their initial values as ctor parameters.
Details
Details
- Reviewers
gkm thakis - Group Reviewers
Restricted Project - Commits
- rG681cfeb59119: [lld-macho][nfc] Have InputSection ctors take some parameters
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
lld/MachO/InputFiles.cpp | ||
---|---|---|
243–244 | I think you're removing all callers of this below -- remove this function, it should be unused. |
I think you're removing all callers of this below -- remove this function, it should be unused.