|
| 1 | +; RUN: llc < %s | FileCheck %s --check-prefix=ASM |
| 2 | +; RUN: llc -filetype=obj < %s | llvm-readobj --codeview - | FileCheck %s --check-prefix=OBJ |
| 3 | + |
| 4 | +; ASM: .short 4412 # Record kind: S_COMPILE3 |
| 5 | +; ASM-NEXT: .long 21 # Flags and language |
| 6 | +; ASM-NEXT: .short 208 # CPUType |
| 7 | + |
| 8 | +; OBJ-LABEL: Compile3Sym { |
| 9 | +; OBJ-NEXT: Kind: S_COMPILE3 (0x113C) |
| 10 | +; OBJ-NEXT: Language: Rust (0x15) |
| 11 | +; OBJ-NEXT: Flags [ (0x0) |
| 12 | +; OBJ-NEXT: ] |
| 13 | +; OBJ-NEXT: Machine: X64 (0xD0) |
| 14 | +; OBJ-NEXT: FrontendVersion: {{[0-9.]*}} |
| 15 | +; OBJ-NEXT: BackendVersion: {{[0-9.]*}} |
| 16 | +; OBJ-NEXT: VersionName: clang LLVM (rustc version 1.57.0 (f1edd0429 2021-11-29)) |
| 17 | +; OBJ-NEXT: } |
| 18 | + |
| 19 | + |
| 20 | +; ModuleID = 'main.a61fec89-cgu.0' |
| 21 | +source_filename = "main.a61fec89-cgu.0" |
| 22 | +target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" |
| 23 | +target triple = "x86_64-pc-windows-msvc" |
| 24 | + |
| 25 | +; Function Attrs: uwtable |
| 26 | +define void @f() unnamed_addr #0 !dbg !6 { |
| 27 | +start: |
| 28 | + ret void, !dbg !11 |
| 29 | +} |
| 30 | + |
| 31 | +attributes #0 = { uwtable "target-cpu"="x86-64" } |
| 32 | + |
| 33 | +!llvm.module.flags = !{!0, !1, !2} |
| 34 | +!llvm.dbg.cu = !{!3} |
| 35 | + |
| 36 | +!0 = !{i32 7, !"PIC Level", i32 2} |
| 37 | +!1 = !{i32 2, !"CodeView", i32 1} |
| 38 | +!2 = !{i32 2, !"Debug Info Version", i32 3} |
| 39 | +!3 = distinct !DICompileUnit(language: DW_LANG_Rust, file: !4, producer: "clang LLVM (rustc version 1.57.0 (f1edd0429 2021-11-29))", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !5) |
| 40 | +!4 = !DIFile(filename: "main.rs", directory: "src") |
| 41 | +!5 = !{} |
| 42 | +!6 = distinct !DISubprogram(name: "f", scope: !8, file: !7, line: 13, type: !9, scopeLine: 13, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !3, templateParams: !5, retainedNodes: !5) |
| 43 | +!7 = !DIFile(filename: "main.rs", directory: "src", checksumkind: CSK_SHA1, checksum: "2ac9107db410c2ac03093f537ff521068091fb92") |
| 44 | +!8 = !DINamespace(name: "main", scope: null) |
| 45 | +!9 = !DISubroutineType(types: !10) |
| 46 | +!10 = !{null} |
| 47 | +!11 = !DILocation(line: 14, scope: !12) |
| 48 | +!12 = !DILexicalBlockFile(scope: !6, file: !7, discriminator: 0) |
0 commit comments