David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2016-17 Synopsys, Inc. (www.synopsys.com) |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef _ASM_ARC_DWARF_H |
| 7 | #define _ASM_ARC_DWARF_H |
| 8 | |
| 9 | #ifdef __ASSEMBLY__ |
| 10 | |
| 11 | #ifdef ARC_DW2_UNWIND_AS_CFI |
| 12 | |
| 13 | #define CFI_STARTPROC .cfi_startproc |
| 14 | #define CFI_ENDPROC .cfi_endproc |
| 15 | #define CFI_DEF_CFA .cfi_def_cfa |
| 16 | #define CFI_REGISTER .cfi_register |
| 17 | #define CFI_REL_OFFSET .cfi_rel_offset |
| 18 | #define CFI_UNDEFINED .cfi_undefined |
| 19 | |
| 20 | #else |
| 21 | |
| 22 | #define CFI_IGNORE # |
| 23 | |
| 24 | #define CFI_STARTPROC CFI_IGNORE |
| 25 | #define CFI_ENDPROC CFI_IGNORE |
| 26 | #define CFI_DEF_CFA CFI_IGNORE |
| 27 | #define CFI_REGISTER CFI_IGNORE |
| 28 | #define CFI_REL_OFFSET CFI_IGNORE |
| 29 | #define CFI_UNDEFINED CFI_IGNORE |
| 30 | |
| 31 | #endif /* !ARC_DW2_UNWIND_AS_CFI */ |
| 32 | |
| 33 | #endif /* __ASSEMBLY__ */ |
| 34 | |
| 35 | #endif /* _ASM_ARC_DWARF_H */ |