[llvm-lipo] Support object files with bitcode asm
authorVincent Lee <leevince@fb.com>
Mon, 12 Sep 2022 21:52:08 +0000 (14:52 -0700)
committerVincent Lee <leevince@fb.com>
Tue, 13 Sep 2022 01:14:22 +0000 (18:14 -0700)
commit61e54384982afa89539cc76b79a42af883b172f2
tree6acc40946e656d4189234ea1244f4fd856dff787
parent41182a65a64a79752bcb666f15001ea74ec70fdf
[llvm-lipo] Support object files with bitcode asm

llvm-lipo crashes when trying to use inputs that contain bitcode asm instructions.
This happens when trying to create universal binaries for LLVM with LTO.
https://reviews.llvm.org/D118575 is a similar change that ran into this same issue, and I'm
mirroring the same change by registering the targets to fix this issue.

Reviewed By: alexander-shaposhnikov, keith

Differential Revision: https://reviews.llvm.org/D133729
llvm/test/tools/llvm-lipo/Inputs/arm64-asm.ll [new file with mode: 0644]
llvm/test/tools/llvm-lipo/Inputs/x86_64-asm.ll [new file with mode: 0644]
llvm/test/tools/llvm-lipo/create-arch-asm.test [new file with mode: 0644]
llvm/tools/llvm-lipo/llvm-lipo.cpp