This is an archive of the discontinued LLVM Phabricator instance.

[lld] Add ScriptParserBase class
ClosedPublic

Authored by zatrazz on Apr 4 2016, 1:28 PM.

Details

Reviewers
ruiu
rafael
Summary

This patch add a base script tokenizer class to decouple parsing from
linker script handling. The idea is to use this base class on dynamic
list parsing (--dynamic-list option). No functionality added.

Diff Detail

Event Timeline

zatrazz updated this revision to Diff 52611.Apr 4 2016, 1:28 PM
zatrazz retitled this revision from to [lld] Add ScriptParserBase class.
zatrazz updated this object.
zatrazz added reviewers: ruiu, rafael.
zatrazz set the repository for this revision to rL LLVM.
zatrazz added a project: lld.
zatrazz added subscribers: llvm-commits, rengolin.
ruiu added inline comments.Apr 4 2016, 2:23 PM
ELF/ScriptParser.cpp
17

Do you need this #include?

ELF/ScriptParser.h
22–23

Please run clang-format-diff on this patch.

zatrazz added inline comments.Apr 4 2016, 2:34 PM
ELF/ScriptParser.cpp
17

I do not think so, I will remove it.

ELF/ScriptParser.h
22–23

I will do it.

zatrazz updated this revision to Diff 52792.Apr 6 2016, 7:29 AM
zatrazz removed rL LLVM as the repository for this revision.

Updated patch rebased against master and with clang-format fixes.

ruiu accepted this revision.Apr 6 2016, 10:40 AM
ruiu edited edge metadata.

LGTM with a nit.

ELF/LinkerScript.cpp
112

I think final here is redundant because you marked this class as final.

This revision is now accepted and ready to land.Apr 6 2016, 10:40 AM
zatrazz closed this revision.Apr 6 2016, 3:24 PM