[ThinLTO] Metadata linking for imported functions
[oota-llvm.git] / test / Linker / Inputs / thinlto_funcimport_debug.ll
1 ; ModuleID = 'dbg_main.o'
2 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
3 target triple = "x86_64-unknown-linux-gnu"
4
5 ; Function Attrs: nounwind uwtable
6 define i32 @main() #0 !dbg !4 {
7 entry:
8   %call = tail call i32 @func1(i32 10) #2, !dbg !11
9   %call1 = tail call i32 @func2(i32 10) #2, !dbg !12
10   ret i32 0, !dbg !13
11 }
12
13 declare i32 @func1(i32) #1
14
15 declare i32 @func2(i32) #1
16
17 attributes #0 = { nounwind uwtable "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2" "unsafe-fp-math"="false" "use-soft-float"="false" }
18 attributes #1 = { "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2" "unsafe-fp-math"="false" "use-soft-float"="false" }
19 attributes #2 = { nounwind }
20
21 !llvm.dbg.cu = !{!0}
22 !llvm.module.flags = !{!8, !9}
23 !llvm.ident = !{!10}
24
25 !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 3.8.0 (trunk 251407) (llvm/trunk 251401)", isOptimized: true, runtimeVersion: 0, emissionKind: 1, enums: !2, subprograms: !3)
26 !1 = !DIFile(filename: "dbg_main.c", directory: ".")
27 !2 = !{}
28 !3 = !{!4}
29 !4 = distinct !DISubprogram(name: "main", scope: !1, file: !1, line: 3, type: !5, isLocal: false, isDefinition: true, scopeLine: 3, isOptimized: true, variables: !2)
30 !5 = !DISubroutineType(types: !6)
31 !6 = !{!7}
32 !7 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
33 !8 = !{i32 2, !"Dwarf Version", i32 4}
34 !9 = !{i32 2, !"Debug Info Version", i32 3}
35 !10 = !{!"clang version 3.8.0 (trunk 251407) (llvm/trunk 251401)"}
36 !11 = !DILocation(line: 4, column: 3, scope: !4)
37 !12 = !DILocation(line: 5, column: 3, scope: !4)
38 !13 = !DILocation(line: 6, column: 1, scope: !4)