This finishes PR35877.
INSERT BEFORE used similar to INSERT AFTER,
it inserts sections before the given target section.
Paths
| Differential D44380
[ELF] - Implement INSERT BEFORE. ClosedPublic Authored by grimar on Mar 12 2018, 6:38 AM.
Details Summary This finishes PR35877. INSERT BEFORE used similar to INSERT AFTER,
Diff Detail
Event TimelineComment Actions George Rimar via Phabricator via llvm-commits
It might be simpler to do for (auto &Cmds : {InsertBeforeCommands, InsertAfterCommands}) { ... } LGTM with that. Cheers,
Revision Contents
Diff 138142 lld/trunk/ELF/LinkerScript.h
lld/trunk/ELF/LinkerScript.cpp
lld/trunk/ELF/ScriptParser.cpp
lld/trunk/test/ELF/linkerscript/insert-after.test
lld/trunk/test/ELF/linkerscript/insert-before.test
lld/trunk/test/ELF/linkerscript/insert-broken.test
|