Debian Codegraph @

llvm/test/tools/dsymutil/X86/swift-ast-x86_64.test

raw
1 RUN: dsymutil -oso-prepend-path %p/.. %p/../Inputs/swift-ast.macho.x86_64 -o %T/swift-ast.dSYM -verbose -no-swiftmodule-timestamp | FileCheck %s --check-prefix=DSYMUTIL
2 RUN: dsymutil -oso-prepend-path %p/.. %p/../Inputs/swift-ast.macho.x86_64 -o %T/swift-ast.dSYM -verbose | FileCheck %s --check-prefix=DSYMUTIL
3 RUN: llvm-readobj --sections --section-data %T/swift-ast.dSYM/Contents/Resources/DWARF/swift-ast.macho.x86_64 | FileCheck %s --check-prefix=READOBJ
4 RUN: llvm-dwarfdump --show-section-sizes %T/swift-ast.dSYM/Contents/Resources/DWARF/swift-ast.macho.x86_64 | FileCheck %s --check-prefix=DWARFDUMP
5
6 RUN: dsymutil --linker parallel -oso-prepend-path %p/.. %p/../Inputs/swift-ast.macho.x86_64 -o %T/swift-ast.dSYM -verbose -no-swiftmodule-timestamp | FileCheck %s --check-prefix=DSYMUTIL
7 RUN: dsymutil --linker parallel -oso-prepend-path %p/.. %p/../Inputs/swift-ast.macho.x86_64 -o %T/swift-ast.dSYM -verbose | FileCheck %s --check-prefix=DSYMUTIL
8 RUN: llvm-readobj --sections --section-data %T/swift-ast.dSYM/Contents/Resources/DWARF/swift-ast.macho.x86_64 | FileCheck %s --check-prefix=READOBJ
9 RUN: llvm-dwarfdump --show-section-sizes %T/swift-ast.dSYM/Contents/Resources/DWARF/swift-ast.macho.x86_64 | FileCheck %s --check-prefix=DWARFDUMP
10
11
12 The tested object file has been created by the dummy Swift code:
13 let x = 1
14
15 Compiled with:
16 swiftc /tmp/test.swift -Onone -target x86_64-apple-macosx10.9 -c
17 ld swift-ast.o -add_ast_path Inputs/swift-ast.swiftmodule -arch x86_64 -lSystem -macosx_version_min 10.9.0
18
19 DSYMUTIL: filename:{{.*}}swift-ast.swiftmodule
20 DSYMUTIL-NOT: The file was not recognized as a valid object file
21 DSYMUTIL-NOT: timestamp mismatch
22 DSYMUTIL: DEBUG MAP OBJECT:{{.*}}swift-ast.swiftmodule
23
24 READOBJ: Name:{{.*}}__swift_ast
25 READOBJ: |SWIFTMODULE DATA|
26 READOBJ-NEXT: |.|
27
28 DWARFDUMP: __swift_ast
29
30 RUN: dsymutil -s %T/swift-ast.dSYM/Contents/Resources/DWARF/swift-ast.macho.x86_64 | FileCheck %s --check-prefix=NAST
31 NAST-NOT: N_AST