annotate test/MC/WebAssembly/debug-info.ll @ 121:803732b1fca8

LLVM 5.0
author kono
date Fri, 27 Oct 2017 17:07:41 +0900
parents
children 3a76565eade5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
1 ; RUN: llc -mtriple wasm32-unknown-unknown-wasm -filetype=obj %s -o - | llvm-readobj -r -s -expand-relocs
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
3 ; Debug information is currently not supported. This test simply verifies that
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
4 ; a valid object generated.
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
5 source_filename = "test.c"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
6
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
7 @myextern = external global i32, align 4
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
8 @foo = hidden global i32* @myextern, align 4, !dbg !0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
9 @ptr2 = hidden global void ()* @f2, align 4, !dbg !6
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
10
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
11 ; Function Attrs: noinline nounwind optnone
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
12 define hidden void @f2() #0 !dbg !17 {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
13 entry:
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
14 ret void, !dbg !18
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
15 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
16
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
17 attributes #0 = { noinline nounwind optnone "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="generic" "unsafe-fp-math"="false" "use-soft-float"="false" }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
18
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
19 !llvm.dbg.cu = !{!2}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
20 !llvm.module.flags = !{!13, !14, !15}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
21 !llvm.ident = !{!16}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
22
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
23 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
24 !1 = distinct !DIGlobalVariable(name: "foo", scope: !2, file: !3, line: 4, type: !11, isLocal: false, isDefinition: true)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
25 !2 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, producer: "clang version 6.0.0 (trunk 315924) (llvm/trunk 315960)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !5)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
26 !3 = !DIFile(filename: "test.c", directory: "/usr/local/google/home/sbc/dev/wasm/simple")
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
27 !4 = !{}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
28 !5 = !{!0, !6}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
29 !6 = !DIGlobalVariableExpression(var: !7, expr: !DIExpression())
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
30 !7 = distinct !DIGlobalVariable(name: "ptr2", scope: !2, file: !3, line: 5, type: !8, isLocal: false, isDefinition: true)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
31 !8 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !9, size: 32)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
32 !9 = !DISubroutineType(types: !10)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
33 !10 = !{null}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
34 !11 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !12, size: 32)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
35 !12 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
36 !13 = !{i32 2, !"Dwarf Version", i32 4}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
37 !14 = !{i32 2, !"Debug Info Version", i32 3}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
38 !15 = !{i32 1, !"wchar_size", i32 4}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
39 !16 = !{!"clang version 6.0.0 (trunk 315924) (llvm/trunk 315960)"}
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
40 !17 = distinct !DISubprogram(name: "f2", scope: !3, file: !3, line: 2, type: !9, isLocal: false, isDefinition: true, scopeLine: 2, flags: DIFlagPrototyped, isOptimized: false, unit: !2, variables: !4)
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
41 !18 = !DILocation(line: 2, column: 16, scope: !17)