[JITLink][MachO] Re-apply b64afadf306, MachO linker-private support, with fixes.
authorLang Hames <lhames@gmail.com>
Sat, 14 Mar 2020 23:53:05 +0000 (16:53 -0700)
committerLang Hames <lhames@gmail.com>
Sun, 15 Mar 2020 01:36:15 +0000 (18:36 -0700)
commit9c9eb60b4b1a79f543eeed054266df5d705d2fb5
tree6cf75c1c3c8f2bd79a9d9354185f38778e8c3ffd
parent4dfe92e46542be46d634a7ec24da2f2f889623d0
[JITLink][MachO] Re-apply b64afadf306, MachO linker-private support, with fixes.

Global symbols with linker-private prefixes should be resolvable across object
boundaries, but internal symbols with linker-private prefixes should not.
llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp
llvm/lib/ExecutionEngine/JITLink/MachO_arm64.cpp
llvm/lib/ExecutionEngine/Orc/Mangling.cpp
llvm/test/ExecutionEngine/JITLink/X86/Inputs/MachO_global_linker_private_def.s [new file with mode: 0644]
llvm/test/ExecutionEngine/JITLink/X86/Inputs/MachO_internal_linker_private_def.s [new file with mode: 0644]
llvm/test/ExecutionEngine/JITLink/X86/MachO_linker_private_symbols.s [new file with mode: 0644]