brintos

brintos / llvm-project-archived public Read only

0
0
Text · 890 B · 48f083d Raw
25 lines · plain
1## Make sure that using -g (or equivalent) on an asm file that already has2## debug-info directives in it will correctly ignore the -g and produce3## debug info corresponding to the directives in the source.4## Note gcc accepts ".file 1" after a label, although not after an opcode.5## If no other directives appear, gcc emits no debug info at all.6 7# RUN: llvm-mc -g -triple i386-unknown-unknown -filetype=obj %s -o %t8# RUN: llvm-dwarfdump -debug-info -debug-line %t | FileCheck %s9 10foo:11        .file 1 "a.c"12        .loc 1 1 113        nop14 15# CHECK: .debug_info16## gcc does generate a DW_TAG_compile_unit in this case, with or without17## -g on the command line, but we do not.18# CHECK-EMPTY:19# CHECK-NEXT: .debug_line20# CHECK: file_names[ 1]:21# CHECK-NEXT: name: "a.c"22# CHECK-NEXT: dir_index: 023# CHECK: 0x{{0+}}0 1 1 1 0 0 0 is_stmt24# CHECK: 0x{{0+}}1 1 1 1 0 0 0 is_stmt end_sequence25