[Lldb-commits] [PATCH] D47708: PDB support of function-level linking and splitted functions
Aleksandr Urakov via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Jun 7 07:00:52 PDT 2018
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 information.
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?
https://reviews.llvm.org/D47708
More information about the lldb-commits
mailing list