Paul Robinson | cc7344a | 2018-06-14 13:38:20 +0000 | [diff] [blame] | 1 | ; RUN: %llc_dwarf -filetype=asm -dwarf-version=5 %s -o - | FileCheck %s -check-prefix=ASM |
| 2 | ; RUN: %llc_dwarf -filetype=obj -dwarf-version=5 %s -o - | llvm-dwarfdump -debug-line - | FileCheck %s -check-prefix=OBJ |
| 3 | ; ASM: .file 0 "{{.+}}" md5 |
| 4 | ; ASM: .file 1 "{{.+}}" md5 |
| 5 | ; ASM: .file 2 "t1.cpp" |
| 6 | ; ASM-NOT: md5 |
| 7 | ; OBJ: file_names[ 0]: |
| 8 | ; OBJ-NOT: md5 |
| 9 | ; |
| 10 | ; Generated from this source (see PR37623): |
| 11 | ; |
| 12 | ; #define a(...) template __VA_ARGS__; |
| 13 | ; template <class> class b {}; |
| 14 | ; a(class b<int>) |
| 15 | ; # 1 "" |
| 16 | ; int c; |
| 17 | |
| 18 | ; ModuleID = 't1.cpp' |
| 19 | source_filename = "t1.cpp" |
| 20 | target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" |
| 21 | target triple = "x86_64-unknown-linux-gnu" |
| 22 | |
| 23 | @c = global i32 0, align 4, !dbg !0 |
| 24 | |
| 25 | !llvm.dbg.cu = !{!2} |
| 26 | !llvm.module.flags = !{!12, !13, !14} |
| 27 | !llvm.ident = !{!15} |
| 28 | |
| 29 | !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression()) |
| 30 | !1 = distinct !DIGlobalVariable(name: "c", scope: !2, file: !3, line: 1, type: !10, isLocal: false, isDefinition: true) |
| 31 | !2 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !3, producer: "clang version 7.0.0 ", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, retainedTypes: !5, globals: !11) |
| 32 | !3 = !DIFile(filename: "<stdin>", directory: "/home/probinson/projects/scratch", checksumkind: CSK_MD5, checksum: "9252ff18ee25a08c2b4216b21b5d66d4") |
| 33 | !4 = !{} |
| 34 | !5 = !{!6} |
| 35 | !6 = distinct !DICompositeType(tag: DW_TAG_class_type, name: "b<int>", file: !7, line: 3, size: 8, flags: DIFlagTypePassByValue, elements: !4, templateParams: !8, identifier: "_ZTS1bIiE") |
| 36 | !7 = !DIFile(filename: "t1.cpp", directory: "/home/probinson/projects/scratch") |
| 37 | !8 = !{!9} |
| 38 | !9 = !DITemplateTypeParameter(type: !10) |
| 39 | !10 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) |
| 40 | !11 = !{!0} |
| 41 | !12 = !{i32 2, !"Dwarf Version", i32 5} |
| 42 | !13 = !{i32 2, !"Debug Info Version", i32 3} |
| 43 | !14 = !{i32 1, !"wchar_size", i32 4} |
| 44 | !15 = !{!"clang version 7.0.0 "} |