2014-06-20 00:35:19 +08:00
|
|
|
// RUN: llvm-mc < %s -triple=armv7-linux-gnueabi -filetype=obj -o %t -g -fdebug-compilation-dir=/tmp
|
2017-09-12 07:05:20 +08:00
|
|
|
// RUN: llvm-dwarfdump -v %t | FileCheck -check-prefix DWARF %s
|
2014-06-20 00:35:19 +08:00
|
|
|
// RUN: llvm-objdump -r %t | FileCheck -check-prefix RELOC %s
|
|
|
|
|
|
|
|
// If there is no code in an assembly file, no debug info is produced
|
|
|
|
|
|
|
|
.section .data, "aw"
|
|
|
|
a:
|
|
|
|
.long 42
|
|
|
|
|
2017-09-14 06:09:01 +08:00
|
|
|
// DWARF: ELF32-arm-little
|
|
|
|
// DWARF-NOT: contents:
|
2014-06-20 00:35:19 +08:00
|
|
|
// DWARF: .debug_line contents:
|
|
|
|
|
|
|
|
// RELOC-NOT: RELOCATION RECORDS FOR [.rel.debug_info]:
|
|
|
|
|
|
|
|
// RELOC-NOT: RELOCATION RECORDS FOR [.rel.debug_ranges]:
|
|
|
|
|
|
|
|
// RELOC-NOT: RELOCATION RECORDS FOR [.rel.debug_aranges]:
|