[PATCH] [ELF] Remove {ELF,}GNULinkerScript InputElements.

Rui Ueyama ruiu at google.com
Sat Dec 13 03:13:19 PST 2014


Hi kledzik, Bigcheese, atanasyan, shankarke, Jean-Daniel,

Instead of representing a linker script file as an "InputElement",
parse and evaluate scripts in the driver as we see them.
    
Linker scripts are not regular input files (regular file is one of
object, archive, or shared library file). They are more like
extended command line options. Linker script handling was needlessly
complicated because of that inappropriate abstraction (besides
excessive class hierarchy -- there is no such thing like ELF linker
script but we had two classes there for some reason.)
    
LinkerScript was one of a few remaining InputElement subclasses
that can be expanded to multiple files. With this patch, we are one
step closer to retire InputElement.

http://reviews.llvm.org/D6648

Files:
  include/lld/Driver/GnuLdInputGraph.h
  lib/Driver/GnuLdDriver.cpp
  lib/Driver/GnuLdInputGraph.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6648.17255.patch
Type: text/x-patch
Size: 8050 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141213/c561a977/attachment.bin>


More information about the llvm-commits mailing list