| 1 |
; RUN: llc -O0 %s -filetype=obj -o %t.o |
| 2 |
; RUN: llvm-dwarfdump -arch arm64 %t.o | FileCheck %s |
| 3 |
; RUN: llvm-dwarfdump -arch 0x0100000c %t.o | FileCheck %s |
| 4 |
; CHECK: file format Mach-O arm64 |
| 5 |
; |
| 6 |
; RUN: llvm-dwarfdump -arch i386 %t.o \ |
| 7 |
; RUN: | FileCheck %s --allow-empty --check-prefix=NEGATIVE |
| 8 |
; RUN: llvm-dwarfdump -arch 0 %t.o \ |
| 9 |
; RUN: | FileCheck %s --allow-empty --check-prefix=NEGATIVE |
| 10 |
; NEGATIVE-NOT: file format |
| 11 |
source_filename = "/tmp/empty.c" |
| 12 |
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128" |
| 13 |
target triple = "arm64-apple-ios" |
| 14 |
|
| 15 |
!llvm.module.flags = !{!1, !2, !3, !4} |
| 16 |
!llvm.dbg.cu = !{!5} |
| 17 |
|
| 18 |
!1 = !{i32 2, !"Dwarf Version", i32 4} |
| 19 |
!2 = !{i32 2, !"Debug Info Version", i32 3} |
| 20 |
!3 = !{i32 1, !"wchar_size", i32 4} |
| 21 |
!4 = !{i32 7, !"PIC Level", i32 2} |
| 22 |
!5 = distinct !DICompileUnit(language: DW_LANG_C99, file: !6, producer: "Apple clang", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug) |
| 23 |
!6 = !DIFile(filename: "/tmp/empty.c", directory: "/Volumes/Data/llvm-project") |