mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
67ed710684
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> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206236 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
464 B
ArmAsm
17 lines
464 B
ArmAsm
# RUN: not llvm-mc -triple=x86_64-apple-macosx10.8 -filetype=obj -o %t %s 2>&1 | FileCheck %s
|
|
# Check that the cfi_startproc is declared after the beginning of
|
|
# a procedure, otherwise it will reference an invalid symbol for
|
|
# emitting the relocation.
|
|
# <rdar://problem/15939159>
|
|
|
|
# CHECK: No symbol to start a frame
|
|
.text
|
|
.cfi_startproc
|
|
.globl _someFunction
|
|
_someFunction:
|
|
.cfi_def_cfa_offset 16
|
|
.cfi_offset %rbp, -16
|
|
.cfi_def_cfa_register rbp
|
|
ret
|
|
.cfi_endproc
|