llvm/test/MC/X86/fp-setup-macho.s
Saleem Abdulrasool 6530b2f3a0 X86: loosen an overly aggressive MachO assertion
We would assert that the FP setup CFI used esp/rsp always.  This held up in
practice when the code was generated from IR.  However, with the integrated
assembler, it is possible to have the input be user specified assembly.  In such
a case, we cannot assume that the function implementation has a compact unwind
representation.  Loosen the assertion into a check and bail if we cannot
represent the frame pointer in the compact unwinding.

Addresses PR30453!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281986 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-20 17:05:04 +00:00

12 lines
234 B
ArmAsm

// RUN: llvm-mc -triple x86_64-apple-macho -filetype obj -o - %s | llvm-readobj -sections | FileCheck %s
_label:
.cfi_startproc
.cfi_def_cfa_register rsp
.cfi_endproc
// CHECK: Section {
// CHECK: Name: __eh_frame
// CHECK: }