DI: Reverse direction of subprogram -> function edge.
[oota-llvm.git] / test / CodeGen / X86 / null-streamer.ll
1 ; Check the MCNullStreamer operates correctly, at least on a minimal test case.
2 ;
3 ; RUN: llc -filetype=null -o %t -march=x86 %s
4 ; RUN: llc -filetype=null -o %t -mtriple=i686-cygwin %s
5
6 define void @f0()  {
7   ret void
8 }
9
10 define void @f1() {
11   ret void
12 }
13
14 !llvm.dbg.cu = !{!0}
15 !llvm.module.flags = !{!11, !13}
16
17 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, producer: " ", isOptimized: true, emissionKind: 0, file: !1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !9, imports: !2)
18 !1 = !DIFile(filename: "file.c", directory: "")
19 !2 = !{}
20 !3 = !{!4}
21 !4 = distinct !DISubprogram(name: "", line: 2, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: true, scopeLine: 2, file: !1, scope: !1, type: !6, variables: !2)
22 !6 = !DISubroutineType(types: !7)
23 !7 = !{!8}
24 !8 = !DIBasicType(tag: DW_TAG_base_type, size: 32, align: 32, encoding: DW_ATE_signed)
25 !9 = !{!10}
26 !10 = !DIGlobalVariable(name: "i", linkageName: "_ZL1i", line: 1, isLocal: true, isDefinition: true, scope: null, file: !1, type: !8)
27 !11 = !{i32 2, !"Dwarf Version", i32 3}
28 !13 = !{i32 1, !"Debug Info Version", i32 3}