1; The original purpose of this test case was to verify DBX under AIX, 2; but XCOFF does not support object mode for now. Since the option 3; `-debugger-tune=dbx` is target-independent, set `-mtriple` to 4; `powerpc-unknown-linux` for now. 5 6; RUN: llc -mtriple powerpc-unknown-linux -debugger-tune=dbx -filetype=obj < %s \ 7; RUN: | llvm-dwarfdump -v - | FileCheck %s -implicit-check-not DW_FORM_strp 8 9; CHECK: DW_AT_producer [DW_FORM_string] ("clang version 12.0.0") 10 11source_filename = "1.c" 12target datalayout = "E-m:a-p:32:32-i64:64-n32" 13 14; Function Attrs: noinline nounwind optnone 15define i32 @main() #0 !dbg !8 { 16entry: 17 %retval = alloca i32, align 4 18 store i32 0, ptr %retval, align 4 19 ret i32 0, !dbg !12 20} 21 22!llvm.dbg.cu = !{!0} 23!llvm.module.flags = !{!3, !4, !5, !6} 24!llvm.ident = !{!7} 25 26!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 12.0.0", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, nameTableKind: None) 27!1 = !DIFile(filename: "1.c", directory: "debug") 28!2 = !{} 29!3 = !{i32 7, !"Dwarf Version", i32 4} 30!4 = !{i32 2, !"Debug Info Version", i32 3} 31!5 = !{i32 1, !"wchar_size", i32 2} 32!6 = !{i32 7, !"PIC Level", i32 2} 33!7 = !{!"clang version 12.0.0"} 34!8 = distinct !DISubprogram(name: "main", scope: !1, file: !1, line: 1, type: !9, scopeLine: 2, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !2) 35!9 = !DISubroutineType(types: !10) 36!10 = !{!11} 37!11 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) 38!12 = !DILocation(line: 3, column: 3, scope: !8) 39