[llvm-jitlink] Add support for static archives and MachO universal archives.
authorLang Hames <lhames@gmail.com>
Mon, 3 Aug 2020 18:55:57 +0000 (11:55 -0700)
committerLang Hames <lhames@gmail.com>
Mon, 3 Aug 2020 19:58:00 +0000 (12:58 -0700)
commit777824b49d5d9e1fbc93108107fa6d12a936a2e4
tree8a776d29cbe4ea4cab6836aa3afbbfaa67e38914
parent3e89cbf38e76d0d0ac75fe77d318a5cfeac512f5
[llvm-jitlink] Add support for static archives and MachO universal archives.

Archives can now be specified as input files the same way that object
files are. Archives will always be linked after all objects (regardless
of the relative order of the inputs) but before any dynamic libraries or
process symbols.

This patch also relaxes matching for slice triples in
StaticLibraryDefinitionGenerator in order to support this feature:
Vendors need not match if the source vendor is unknown.
llvm/lib/ExecutionEngine/Orc/ExecutionUtils.cpp
llvm/tools/llvm-jitlink/llvm-jitlink.cpp