brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · b8e8966 Raw
32 lines · plain
1; RUN: %llc_dwarf -filetype=obj -O0 < %s > %t2; RUN: llvm-dwarfdump -v -debug-info %t | FileCheck %s3; CHECK: DW_TAG_ptr_to_member_type4; CHECK-NEXT: DW_AT_type [DW_FORM_ref4]       (cu + {{.*}} => {[[TYPE:0x[0-9a-f]+]]}5; CHECK: [[TYPE]]:   DW_TAG_base_type6; IR generated from clang -g with the following source:7; struct Foo {8;   int e;9; };10; int Foo:*x = 0;11 12source_filename = "test/DebugInfo/Generic/tu-member-pointer.ll"13 14@x = global i64 -1, align 8, !dbg !015 16!llvm.dbg.cu = !{!6}17!llvm.module.flags = !{!10, !11}18 19!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())20!1 = !DIGlobalVariable(name: "x", scope: null, file: !2, line: 4, type: !3, isLocal: false, isDefinition: true)21!2 = !DIFile(filename: "foo.cpp", directory: ".")22!3 = !DIDerivedType(tag: DW_TAG_ptr_to_member_type, baseType: !4, extraData: !5)23!4 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)24!5 = !DICompositeType(tag: DW_TAG_structure_type, name: "Foo", file: !2, line: 1, flags: DIFlagFwdDecl, identifier: "_ZTS3Foo")25!6 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !2, producer: "clang version 3.4", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !7, retainedTypes: !8, globals: !9, imports: !7)26!7 = !{}27!8 = !{!5}28!9 = !{!0}29!10 = !{i32 2, !"Dwarf Version", i32 3}30!11 = !{i32 1, !"Debug Info Version", i32 3}31 32