Minor cleanup.
Currently it looks wierd that having method addPredefinedSections()
we still add 2 sections outside it without real reasons.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Naturally this change made me wonder whether this is too inefficient or not, but it is probably okay since the number of output sections is not very large.
ELF/Writer.cpp | ||
---|---|---|
1470–1474 ↗ | (On Diff #56298) | Move this after the code to add BuildId to remove the variable I. if (needsInterpSection()) OutputSections.insert(OutputSections.begin(), Out<ELFT>::Interp); |
1477 ↗ | (On Diff #56298) | now -> to beginning of the file |
Comment Actions
While this is not large vector of pointers, it should be fine.
ELF/Writer.cpp | ||
---|---|---|
1470–1474 ↗ | (On Diff #56298) | Done. |
1477 ↗ | (On Diff #56298) | Done. |