1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/MC/ARM/dwarf-cfi-initial-state.s
Quentin Colombet e6f12ef160 [MC] Emit an error if cfi_startproc is used before a symbol is defined.
Currently, we bind those directives with the last symbol, so if none
has been defined, this would lead to a crash of the compiler.

<rdar://problem/15939159>

llvm-svn: 206236
2014-04-15 01:17:45 +00:00

18 lines
410 B
ArmAsm

# RUN: llvm-mc < %s -triple=armv7-linux-gnueabi -filetype=obj -o - \
# RUN: | llvm-dwarfdump - | FileCheck %s
_proc:
.cfi_sections .debug_frame
.cfi_startproc
bx lr
.cfi_endproc
# CHECK: .debug_frame contents:
# CHECK: CIE
# CHECK-NOT: DW_CFA
# When llvm-dwarfdump prints the full info for the DW_CFA_def_cfa
# field, we can check that here too.
# CHECK: DW_CFA_def_cfa:
# CHECK-NOT: DW_CFA
# CHECK: FDE