llvm-project/llvm/test/MC/MachO/driverkit-sdk-version.ll
Egor Zhdan 3a1cb36237 Add DriverKit support
This patch is the first in a series of patches to upstream the support for Apple's DriverKit. Once complete, it will allow targeting DriverKit platform with Clang similarly to AppleClang.

This code was originally authored by JF Bastien.

Differential Revision: https://reviews.llvm.org/D118046
2022-02-22 13:42:53 +00:00

19 lines
474 B
LLVM

; RUN: llc %s -filetype=obj -o - | llvm-objdump --macho --private-headers - | FileCheck %s
; RUN: llc %s -filetype=asm -o - | FileCheck --check-prefix=ASM %s
target triple = "x86_64-apple-driverkit19.0.0"
define void @foo() {
entry:
ret void
}
; CHECK: cmd LC_BUILD_VERSION
; CHECK-NEXT: cmdsize 24
; CHECK-NEXT: platform driverkit
; CHECK-NEXT: sdk n/a
; CHECK-NEXT: minos 19.0
; CHECK-NEXT: ntools 0
; ASM: .build_version driverkit, 19, 0