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



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to