mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
b4279d9528
Tools working with object files on Darwin (e.g. lipo) may need to know properties like the CPU type and subtype of a bitcode file. The logic of converting a triple to a Mach-O CPU_(SUB_)TYPE should be provided by LLVM instead of relying on tools to re-implement it. Differential Revision: https://reviews.llvm.org/D75067
9 lines
236 B
LLVM
9 lines
236 B
LLVM
; RUN: rm -rf %t && mkdir -p %t
|
|
; RUN: llvm-as -o %t/1.bc %s
|
|
; RUN: llvm-lto -print-macho-cpu-only %t/1.bc | FileCheck %s
|
|
|
|
target triple = "x86_64-apple-darwin"
|
|
; CHECK: 1.bc:
|
|
; CHECK-NEXT: cputype: 16777223
|
|
; CHECK-NEXT: cpusubtype: 3
|