mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
a3f218a091
This allows the DWARFExpression class to handle addresses without crashing on targets with 16-bit pointers like AVR. This is required in order to generate assembly from clang via the '-S' flag. This fixes an error with the following message: clang: llvm/include/llvm/DebugInfo/DWARF/DWARFExpression.h:132: llvm::DWARFExpression::DWARFExpression(llvm::DataExtractor, uint16_t, uint8_t): Assertion `AddressSize == 8 || AddressSize == 4' failed. llvm-svn: 362290
20 lines
569 B
ArmAsm
20 lines
569 B
ArmAsm
// RUN: llvm-mc < %s -triple=avr -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-avr
|
|
// 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]:
|