annotate llvm/test/Instrumentation/AddressSanitizer/debug-info-global-var.ll @ 227:21e6aa2e49ef

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 19 Jul 2021 06:57:16 +0900
parents 2e18cbf3894f
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1 ; RUN: opt < %s -asan -asan-module -enable-new-pm=0 -S | FileCheck %s
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
2 ; RUN: opt < %s -passes='asan-pipeline' -S | FileCheck %s
150
anatofuz
parents:
diff changeset
3 source_filename = "version.c"
anatofuz
parents:
diff changeset
4 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
anatofuz
parents:
diff changeset
5 target triple = "x86_64-apple-macosx10.12.0"
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
6 ; CHECK: @version = constant { [5 x i8], [27 x i8] } {{.*}}, !dbg ![[GV:.*]]
150
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 @version = constant [5 x i8] c"4.00\00", align 1, !dbg !0
anatofuz
parents:
diff changeset
9
anatofuz
parents:
diff changeset
10 !llvm.dbg.cu = !{!2}
anatofuz
parents:
diff changeset
11 !llvm.module.flags = !{!11, !12, !13}
anatofuz
parents:
diff changeset
12 !llvm.ident = !{!14}
anatofuz
parents:
diff changeset
13 ; Should not have an expression:
anatofuz
parents:
diff changeset
14 ; CHECK: ![[GV]] = !DIGlobalVariableExpression(var: ![[GVAR:.*]], expr: !DIExpression())
anatofuz
parents:
diff changeset
15 ; CHECK: ![[GVAR]] = !DIGlobalVariable(name: "version"
anatofuz
parents:
diff changeset
16
anatofuz
parents:
diff changeset
17 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
anatofuz
parents:
diff changeset
18 !1 = !DIGlobalVariable(name: "version", scope: !2, file: !3, line: 2, type: !6, isLocal: false, isDefinition: true)
anatofuz
parents:
diff changeset
19 !2 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, producer: "clang version 4.0.0 (trunk 281923) (llvm/trunk 281916)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !5)
anatofuz
parents:
diff changeset
20 !3 = !DIFile(filename: "version.c", directory: "/Volumes/Fusion/Data/radar/24899262")
anatofuz
parents:
diff changeset
21 !4 = !{}
anatofuz
parents:
diff changeset
22 !5 = !{!0}
anatofuz
parents:
diff changeset
23 !6 = !DICompositeType(tag: DW_TAG_array_type, baseType: !7, size: 40, align: 8, elements: !9)
anatofuz
parents:
diff changeset
24 !7 = !DIDerivedType(tag: DW_TAG_const_type, baseType: !8)
anatofuz
parents:
diff changeset
25 !8 = !DIBasicType(name: "char", size: 8, align: 8, encoding: DW_ATE_signed_char)
anatofuz
parents:
diff changeset
26 !9 = !{!10}
anatofuz
parents:
diff changeset
27 !10 = !DISubrange(count: 5)
anatofuz
parents:
diff changeset
28 !11 = !{i32 2, !"Dwarf Version", i32 4}
anatofuz
parents:
diff changeset
29 !12 = !{i32 2, !"Debug Info Version", i32 3}
anatofuz
parents:
diff changeset
30 !13 = !{i32 1, !"PIC Level", i32 2}
anatofuz
parents:
diff changeset
31 !14 = !{!"clang version 4.0.0 (trunk 281923) (llvm/trunk 281916)"}
anatofuz
parents:
diff changeset
32