mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
93fed884cc
Since users typically don't really care about the .dwo / non.dwo distinction, this patch makes it so dwarfdump --debug-<info,...> dumps .debug_info and (if available) also .debug_info.dwo. This simplifies the command line interface (I've removed all dwo-specific dump options) and makes the tool friendlier to use. Differential Revision: https://reviews.llvm.org/D37771 llvm-svn: 313207
20 lines
592 B
ArmAsm
20 lines
592 B
ArmAsm
// RUN: llvm-mc < %s -triple=armv7-linux-gnueabi -filetype=obj -o %t -g -fdebug-compilation-dir=/tmp
|
|
// RUN: llvm-dwarfdump -v %t | FileCheck -check-prefix DWARF %s
|
|
// 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
|
|
|
|
// DWARF: ELF32-arm-little
|
|
// DWARF-NOT: contents:
|
|
// 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]:
|