brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.7 KiB · 5a012ce Raw
63 lines · plain
1; RUN: llc -filetype=obj < %s | llvm-readobj --codeview - | FileCheck %s2; RUN: llc < %s | llvm-mc -filetype=obj --triple=i686-windows | llvm-readobj --codeview - | FileCheck %s3 4; Objective-C++ source demonstrating the issue:5; void (^b)(void) = []() {};6 7; C++ source derived and modified from:8; struct S {9;   struct {10;     int a;11;   };12; } s;13 14; CHECK: CodeViewTypes [15; CHECK:  FieldList ([[S_fl:.*]]) {16; CHECK:    TypeLeafKind: LF_FIELDLIST (0x1203)17; CHECK:    DataMember {18; CHECK:      Type: int (0x74)19; CHECK:      FieldOffset: 0x020; CHECK:      Name: a21; CHECK:    }22; CHECK:  }23; CHECK:  Struct ({{.*}}) {24; CHECK:    TypeLeafKind: LF_STRUCTURE (0x1505)25; CHECK:    MemberCount: 226; CHECK:    FieldList: <field list> ([[S_fl]])27; CHECK:    SizeOf: 428; CHECK:    Name: S29; CHECK:    LinkageName: .?AUS@@30; CHECK:  }31 32target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"33target triple = "i686--windows-msvc19.11.0"34 35%struct.S = type { %struct.anon }36%struct.anon = type { i32 }37 38@"\01?s@@3US@@A" = dso_local global %struct.S zeroinitializer, align 4, !dbg !039 40!llvm.dbg.cu = !{!2}41!llvm.module.flags = !{!13, !14, !15, !16}42!llvm.ident = !{!17}43 44!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())45!1 = distinct !DIGlobalVariable(name: "s", linkageName: "\01?s@@3US@@A", scope: !2, file: !3, line: 5, type: !6, isLocal: false, isDefinition: true)46!2 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !3, producer: "clang version 7.0.0 (trunk 325940) (llvm/trunk 325939)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !5)47!3 = !DIFile(filename: "/tmp/ugh.cpp", directory: "/home/smeenai/llvm/build/llvm/Debug", checksumkind: CSK_MD5, checksum: "8256b51d95df0b5e42b848a3afe9cbda")48!4 = !{}49!5 = !{!0}50!6 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "S", file: !3, line: 1, size: 32, flags: DIFlagTypePassByValue, elements: !7, identifier: ".?AUS@@")51!7 = !{!8, !12}52!8 = distinct !DICompositeType(tag: DW_TAG_structure_type, scope: !6, file: !3, line: 2, size: 32, flags: DIFlagTypePassByValue, elements: !9, identifier: ".?AU<unnamed-type-$S1>@S@@")53!9 = !{!10}54!10 = !DIDerivedType(tag: DW_TAG_member, name: "a", scope: !8, file: !3, line: 3, baseType: !11, size: 32)55!11 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)56!12 = !DIDerivedType(tag: DW_TAG_member, scope: !6, file: !3, line: 2, baseType: !18, size: 32) ; !8 changed to !1857!13 = !{i32 1, !"NumRegisterParameters", i32 0}58!14 = !{i32 2, !"CodeView", i32 1}59!15 = !{i32 2, !"Debug Info Version", i32 3}60!16 = !{i32 1, !"wchar_size", i32 2}61!17 = !{!"clang version 7.0.0 (trunk 325940) (llvm/trunk 325939)"}62!18 = !DIDerivedType(tag: DW_TAG_const_type, baseType: !8) ; added manually63