llvm-project/llvm/lib/Linker
Jin Lin cedfa38fc4 Preserve the lexical order for global variables during llvm-link merge
The order of global variables is generated in the order of recursively materializing variables if the global variable has the attribute of hasLocalLinkage or hasLinkOnceLinkage during the module merging. In practice, it is often the exact reverse of source order. This new order may cause performance regression.

The change is to preserve the original lexical order for global variables.

Reviewed By: jdoerfert, dexonsmith

Differential Revision: https://reviews.llvm.org/D94202
2021-04-26 10:11:34 -07:00
..
CMakeLists.txt [ThinLTO] Import symver directives for imported symbols (PR48214) 2020-12-02 14:56:43 +01:00
IRMover.cpp Preserve the lexical order for global variables during llvm-link merge 2021-04-26 10:11:34 -07:00
LinkDiagnosticInfo.h
LinkModules.cpp [llvm-link] Fix for an assertion when linking global with appending linkage 2021-01-23 00:10:42 -08:00