This is an archive of the discontinued LLVM Phabricator instance.

[ELF] - Linkerscript: cleanup of LinkerScript<ELFT>::createSections().
AbandonedPublic

Authored by grimar on Jul 22 2016, 5:30 AM.

Details

Reviewers
ruiu
rafael
Summary

It is becoming harder to update the AddInputSec functor.
I suggest the next cleanup.

Diff Detail

Event Timeline

grimar updated this revision to Diff 65058.Jul 22 2016, 5:30 AM
grimar retitled this revision from to [ELF] - Linkerscript: cleanup of LinkerScript<ELFT>::createSections()..
grimar updated this object.
grimar added reviewers: ruiu, rafael.
grimar added subscribers: llvm-commits, grimar, evgeny777.
grimar added inline comments.Jul 22 2016, 5:34 AM
ELF/LinkerScript.cpp
261

forgot static, will add if approved.

evgeny777 added inline comments.Jul 22 2016, 5:34 AM
ELF/LinkerScript.cpp
261

Will it be called from anywhere else except lambda?
I suggest making it static for now

davide added a subscriber: davide.Jul 22 2016, 11:56 AM
davide added inline comments.
ELF/LinkerScript.cpp
288

I'm not entirely convinced about this cleanup, but, whatever.
I think this function should be called shouldIncludeSection.

grimar abandoned this revision.Jul 29 2016, 8:42 AM

This is depricated one.