IR: Give 'DI' prefix to debug info metadata
[oota-llvm.git] / test / Instrumentation / DataFlowSanitizer / debug.ll
1 ; RUN: opt < %s -dfsan -dfsan-abilist=%S/Inputs/debuglist.txt -S | FileCheck %s
2
3 ; CHECK: !DISubprogram(name: "main",{{.*}} function: i32 ()* @main{{[,)]}}
4
5 ; Generated from a simple source file compiled with clang -g:
6 ; int main() {
7 ; }
8
9 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
10 target triple = "x86_64-unknown-linux-gnu"
11
12 ; Function Attrs: nounwind uwtable
13 define i32 @main() #0 {
14 entry:
15   ret i32 0, !dbg !12
16 }
17
18 attributes #0 = { nounwind uwtable "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
19
20 !llvm.dbg.cu = !{!0}
21 !llvm.module.flags = !{!9, !10}
22 !llvm.ident = !{!11}
23
24 !0 = !DICompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.6.0 ", isOptimized: false, emissionKind: 1, file: !1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2)
25 !1 = !DIFile(filename: "debug.cpp", directory: "/tmp/dbginfo")
26 !2 = !{}
27 !3 = !{!4}
28 !4 = !DISubprogram(name: "main", line: 1, isLocal: false, isDefinition: true, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 1, file: !1, scope: !5, type: !6, function: i32 ()* @main, variables: !2)
29 !5 = !DIFile(filename: "debug.cpp", directory: "/tmp/dbginfo")
30 !6 = !DISubroutineType(types: !7)
31 !7 = !{!8}
32 !8 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
33 !9 = !{i32 2, !"Dwarf Version", i32 4}
34 !10 = !{i32 2, !"Debug Info Version", i32 3}
35 !11 = !{!"clang version 3.6.0 "}
36 !12 = !DILocation(line: 2, column: 1, scope: !4)