Mercurial > hg > CbC > CbC_llvm
comparison test/Linker/2011-08-04-Metadata.ll @ 121:803732b1fca8
LLVM 5.0
author | kono |
---|---|
date | Fri, 27 Oct 2017 17:07:41 +0900 |
parents | 1172e4bd9c6f |
children |
comparison
equal
deleted
inserted
replaced
120:1172e4bd9c6f | 121:803732b1fca8 |
---|---|
3 ; Test if internal global variable's debug info is merged appropriately or not. | 3 ; Test if internal global variable's debug info is merged appropriately or not. |
4 | 4 |
5 ; CHECK: @x = internal global i32 0, align 4, !dbg [[DI1:![0-9]+]] | 5 ; CHECK: @x = internal global i32 0, align 4, !dbg [[DI1:![0-9]+]] |
6 ; CHECK: @x.1 = internal global i32 0, align 4, !dbg [[DI2:![0-9]+]] | 6 ; CHECK: @x.1 = internal global i32 0, align 4, !dbg [[DI2:![0-9]+]] |
7 | 7 |
8 ; CHECK: [[DI1]] = !DIGlobalVariable(name: "x", | 8 ; CHECK: [[DI1]] = !DIGlobalVariableExpression(var: [[V1:.*]], expr: !DIExpression()) |
9 ; CHECK-NOT: linkageName: | 9 ; CHECK: [[V1]] = !DIGlobalVariable(name: "x", |
10 ; CHECK: [[DI2]] = !DIGlobalVariable(name: "x", | 10 ; CHECK-NOT: linkageName: |
11 ; CHECK-NOT: linkageName: | 11 ; CHECK: [[DI2]] = !DIGlobalVariableExpression(var: [[V2:.*]], expr: !DIExpression()) |
12 ; CHECK: [[V2]] = !DIGlobalVariable(name: "x", | |
13 ; CHECK-NOT: linkageName: | |
14 source_filename = "test/Linker/2011-08-04-Metadata.ll" | |
12 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" | 15 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" |
13 target triple = "x86_64-apple-macosx10.7.0" | 16 target triple = "x86_64-apple-macosx10.7.0" |
14 | 17 |
15 @x = internal global i32 0, align 4, !dbg !5 | 18 @x = internal global i32 0, align 4, !dbg !0 |
16 | 19 |
17 define void @foo() nounwind uwtable ssp !dbg !1 { | 20 ; Function Attrs: nounwind ssp uwtable |
21 define void @foo() #0 !dbg !8 { | |
18 entry: | 22 entry: |
19 store i32 1, i32* @x, align 4, !dbg !7 | 23 store i32 1, i32* @x, align 4, !dbg !11 |
20 ret void, !dbg !7 | 24 ret void, !dbg !11 |
21 } | 25 } |
22 | 26 |
23 !llvm.dbg.cu = !{!0} | 27 attributes #0 = { nounwind ssp uwtable } |
24 !llvm.module.flags = !{!11} | |
25 | 28 |
26 !0 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang version 3.0 ()", isOptimized: true, emissionKind: FullDebug, file: !9, enums: !{}, retainedTypes: !{}, globals: !{!5}) | 29 !llvm.dbg.cu = !{!2} |
27 !1 = distinct !DISubprogram(name: "foo", line: 3, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: false, unit: !0, file: !9, scope: !2, type: !3) | 30 !llvm.module.flags = !{!7} |
28 !2 = !DIFile(filename: "/tmp/one.c", directory: "/Volumes/Lalgate/Slate/D") | 31 |
29 !3 = !DISubroutineType(types: !4) | 32 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression()) |
30 !4 = !{null} | 33 !1 = !DIGlobalVariable(name: "x", scope: !2, file: !3, line: 2, type: !6, isLocal: true, isDefinition: true) |
31 !5 = !DIGlobalVariable(name: "x", line: 2, isLocal: true, isDefinition: true, scope: !0, file: !2, type: !6) | 34 !2 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, producer: "clang version 3.0 ()", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, retainedTypes: !4, globals: !5) |
32 !6 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed) | 35 !3 = !DIFile(filename: "/tmp/one.c", directory: "/Volumes/Lalgate/Slate/D") |
33 !7 = !DILocation(line: 3, column: 14, scope: !8) | 36 !4 = !{} |
34 !8 = distinct !DILexicalBlock(line: 3, column: 12, file: !9, scope: !1) | 37 !5 = !{!0} |
35 !9 = !DIFile(filename: "/tmp/one.c", directory: "/Volumes/Lalgate/Slate/D") | 38 !6 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed) |
36 !11 = !{i32 1, !"Debug Info Version", i32 3} | 39 !7 = !{i32 1, !"Debug Info Version", i32 3} |
40 !8 = distinct !DISubprogram(name: "foo", scope: !3, file: !3, line: 3, type: !9, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: false, unit: !2) | |
41 !9 = !DISubroutineType(types: !10) | |
42 !10 = !{null} | |
43 !11 = !DILocation(line: 3, column: 14, scope: !12) | |
44 !12 = distinct !DILexicalBlock(scope: !8, file: !3, line: 3, column: 12) | |
45 |