Keith Smiley dbed14d215 [llvm-libtool-darwin] Fix crash with bitcode asm module
When using llvm-libtool-darwin with LTO building llvm itself, it crashed
on a file with an asm module in the bitcode. This fixes that by
correctly registering the targets for this.

Differential Revision: https://reviews.llvm.org/D118575
2022-02-04 10:54:27 -08:00

10 lines
321 B
Plaintext

# REQUIRES: aarch64-registered-target
## This tests that archives are correctly created when the llvm
## has native assembly info
# RUN: llvm-as %p/Inputs/arm64-asm.ll -o %t-arm64-asm.bc
# RUN: llvm-libtool-darwin -static -o %t-arm64.lib %t-arm64-asm.bc
# RUN: llvm-nm %t-arm64.lib | FileCheck %s
# CHECK: T somesymbol