[JITLink] Update external symbol scopes to reflect scopes of resolved defs.
authorLang Hames <lhames@gmail.com>
Fri, 30 Sep 2022 02:16:19 +0000 (19:16 -0700)
committerLang Hames <lhames@gmail.com>
Fri, 30 Sep 2022 03:32:46 +0000 (20:32 -0700)
commit565f4eb8e607d8e0fbba00d3bca464c51b02a2b8
treeb772051252679dc56350a6cec07482d764506724
parent1cc02b05b752860637b3241fe944854bec2540c4
[JITLink] Update external symbol scopes to reflect scopes of resolved defs.

This is a counterpart to ffe2dda29f3, and does for scope what that commit did
for linkage.

Making the scope of external definitions visible to JITLink plugins will
allow us to distinguish hidden weak defs (which do not need to be tracked by
default) from default-scoped weak defs (which need to be updated to point at
a single chosen definition at runtime).
llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h
llvm/lib/ExecutionEngine/JITLink/JITLinkGeneric.cpp