1; Verify the emission of accelerator tables for the DWARF v5 case. 2 3; debug_names should be emitted regardless of the target and debugger tuning 4; RUN: llc -mtriple=x86_64-apple-darwin12 -filetype=obj < %s \ 5; RUN: | llvm-readobj -sections - | FileCheck --check-prefix=DEBUG_NAMES %s 6; RUN: llc -mtriple=x86_64-apple-darwin12 -filetype=obj -debugger-tune=gdb < %s \ 7; RUN: | llvm-readobj -sections - | FileCheck --check-prefix=DEBUG_NAMES %s 8; RUN: llc -mtriple=x86_64-pc-linux -filetype=obj < %s \ 9; RUN: | llvm-readobj -sections - | FileCheck --check-prefix=DEBUG_NAMES %s 10; RUN: llc -mtriple=x86_64-pc-linux -filetype=obj -debugger-tune=lldb < %s \ 11; RUN: | llvm-readobj -sections - | FileCheck --check-prefix=DEBUG_NAMES %s 12 13; But not if also type units are enabled. 14; TODO: This is the case because we currently don't generate DWARF v5-compatible 15; type units. Change this once DWARF v5 type units are implemented. 16; RUN: llc -mtriple=x86_64-pc-linux -filetype=obj -generate-type-units -debugger-tune=lldb < %s \ 17; RUN: | llvm-readobj -sections - | FileCheck --check-prefix=NONE %s 18 19; Debug types are ignored for non-ELF targets which means it shouldn't affect 20; accelerator table generation. 21; RUN: llc -mtriple=x86_64-apple-darwin12 -generate-type-units -filetype=obj < %s \ 22; RUN: | llvm-readobj -sections - | FileCheck --check-prefix=DEBUG_NAMES %s 23 24; NONE-NOT: apple_names 25; NONE-NOT: debug_names 26 27; DEBUG_NAMES-NOT: apple_names 28; DEBUG_NAMES: debug_names 29; DEBUG_NAMES-NOT: apple_names 30 31 32@x = common dso_local global i32 0, align 4, !dbg !0 33 34!llvm.dbg.cu = !{!2} 35!llvm.module.flags = !{!8, !9, !10} 36!llvm.ident = !{!11} 37 38!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression()) 39!1 = distinct !DIGlobalVariable(name: "x", scope: !2, file: !6, line: 1, type: !7, isLocal: false, isDefinition: true) 40!2 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, producer: "clang version 7.0.0 (trunk 337260) (llvm/trunk 337262)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !5) 41!3 = !DIFile(filename: "-", directory: "/tmp", checksumkind: CSK_MD5, checksum: "06c25fe0c80b8959051a62f8f034710a") 42!4 = !{} 43!5 = !{!0} 44!6 = !DIFile(filename: "<stdin>", directory: "/tmp", checksumkind: CSK_MD5, checksum: "06c25fe0c80b8959051a62f8f034710a") 45!7 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) 46!8 = !{i32 2, !"Dwarf Version", i32 5} 47!9 = !{i32 2, !"Debug Info Version", i32 3} 48!10 = !{i32 1, !"wchar_size", i32 4} 49!11 = !{!"clang version 7.0.0 (trunk 337260) (llvm/trunk 337262)"} 50