[JITLink] Read symbol linkage from the correct field.
authorLang Hames <lhames@gmail.com>
Thu, 12 Mar 2020 01:44:58 +0000 (18:44 -0700)
committerLang Hames <lhames@gmail.com>
Thu, 12 Mar 2020 03:04:54 +0000 (20:04 -0700)
commitc700e0317c25f3f397a8ba368752c4960f4ab975
tree30b7ab6dcf42c619beec187b1ff40c51d0c4bca5
parentb19801640bf621a596187d819afb57514713d1e7
[JITLink] Read symbol linkage from the correct field.

MachO symbol linkage is described by the desc field of the nlist entry, not the
type field.
llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp
llvm/test/ExecutionEngine/JITLink/X86/Inputs/MachO_weak_defs_extra.s [new file with mode: 0644]
llvm/test/ExecutionEngine/JITLink/X86/MachO_weak_definitions.s [new file with mode: 0644]