1 ; RUN: llc -O0 -mtriple=x86_64-apple-darwin -o - %s > %t 2 ; RUN: FileCheck --check-prefix=CHECK-ASM < %t %s 3 4 ; CHECK-ASM: .linker_option "-lz" 5 ; CHECK-ASM-NEXT: .linker_option "-framework", "Cocoa" 6 7 ; RUN: llc -O0 -mtriple=x86_64-apple-darwin -filetype=obj -o - %s | macho-dump > %t 8 ; RUN: FileCheck --check-prefix=CHECK-OBJ < %t %s 9 10 ; CHECK-OBJ: ('load_commands', [ 11 ; CHECK-OBJ: # Load Command 1 12 ; CHECK-OBJ: (('command', 45) 13 ; CHECK-OBJ: ('size', 16) 14 ; CHECK-OBJ: ('count', 1) 15 ; CHECK-OBJ: ('_strings', [ 16 ; CHECK-OBJ: "-lz", 17 ; CHECK-OBJ: ]) 18 ; CHECK-OBJ: ), 19 ; CHECK-OBJ: # Load Command 2 20 ; CHECK-OBJ: (('command', 45) 21 ; CHECK-OBJ: ('size', 32) 22 ; CHECK-OBJ: ('count', 2) 23 ; CHECK-OBJ: ('_strings', [ 24 ; CHECK-OBJ: "-framework", 25 ; CHECK-OBJ: "Cocoa", 26 ; CHECK-OBJ: ]) 27 ; CHECK-OBJ: # Load Command 3 28 ; CHECK-OBJ: (('command', 45) 29 ; CHECK-OBJ: ('size', 24) 30 ; CHECK-OBJ: ('count', 1) 31 ; CHECK-OBJ: ('_strings', [ 32 ; CHECK-OBJ: "-lmath", 33 ; CHECK-OBJ: ]) 34 ; CHECK-OBJ: ), 35 ; CHECK-OBJ: ]) 36 37 !0 = metadata !{ i32 6, metadata !"Linker Options", 38 metadata !{ 39 metadata !{ metadata !"-lz" }, 40 metadata !{ metadata !"-framework", metadata !"Cocoa" }, 41 metadata !{ metadata !"-lmath" } } } 42 43 !llvm.module.flags = !{ !0 } 44