[PATCH] Move LinkerInput to LinkingContext.

Rui Ueyama ruiu at google.com
Thu Sep 19 23:39:12 PDT 2013


It's time to revisit to this patch as LLD is now able to link the standard
C++ library. For further development this feature is really needed, because
otherwise you have to repeat all the library files in the .drectve section
in the command line. This patch is the first step toward supporting input
files in the .drectve section.

In this patch I just moved InputFiles to Linking Context. I will modify
WinLinkDriver in another patch to add new files to InputFiles as they
appear in .drectve, but before that I would refactor Driver::link() to
split it into small functions. The aim of the refactoring would be to make
"input reading" part of the function a separate function, so that we'll be
able to use it from WinLinkDriver. We wouldn't want to do that at once in
order to keep patch size small.

On Thu, Sep 19, 2013 at 11:19 PM, Rui Ueyama <ruiu at google.com> wrote:

>   Rebased to head.
> Hi kledzik, shankarke,
> http://llvm-reviews.chandlerc.com/D1569
>   http://llvm-reviews.chandlerc.com/D1569?vs=3950&id=4420#toc
> Files:
>   include/lld/Core/LinkingContext.h
>   include/lld/Core/Resolver.h
>   include/lld/Driver/Driver.h
>   include/lld/ReaderWriter/PECOFFLinkingContext.h
>   lib/Core/InputFiles.cpp
>   lib/Core/LinkingContext.cpp
>   lib/Core/Resolver.cpp
>   lib/Driver/Driver.cpp
>   lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130919/5fe19f4e/attachment.html>

More information about the llvm-commits mailing list