xref: /openbmc/linux/arch/arc/include/asm/dwarf.h (revision 2cf1c348)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Copyright (C) 2016-17 Synopsys, Inc. (www.synopsys.com)
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 */
36