[Lldb-commits] [PATCH] D47708: PDB support of function-level linking and splitted functions
Zachary Turner via lldb-commits
lldb-commits at lists.llvm.org
Thu Jun 7 07:15:45 PDT 2018
As a general rule, lld-link is command line compatible with MSVC and
clang-cl is command line compatible with cl. So, the /order option should
work exactly the same with lld-link as it does with link.
On Thu, Jun 7, 2018 at 7:00 AM Aleksandr Urakov via Phabricator <
reviews at reviews.llvm.org> wrote:
> aleksandr.urakov added a comment.
> > Function level linking is a compiler feature, not a linker feature.
> It's enabled via the /Gy option in the compiler and causes the compiler to
> put each function into its own COMDAT. The linker can then use this to
> discard more functions (e.g. during /OPT:REF).
> > clang-cl also supports the /Gy option, right?
> Yes, you are right. Sorry, I didn't know about such option in clang and
> googling by 'clang function-level linking' didn't show me any relevant
> But Pavel have prompted me Microsoft linker's option '/ORDER', and it is
> always possible to reproduce the problem with it. Without that option it
> was very difficult to reproduce. Has lld some analog?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the lldb-commits