Merge tag 'cris-for-4.9' of git://git.kernel.org/pub/scm/linux/kernel/git/jesper...
[cascardo/linux.git] / arch / arc / include / asm / dwarf.h
1 /*
2  * Copyright (C) 2016-17 Synopsys, Inc. (www.synopsys.com)
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  */
8
9 #ifndef _ASM_ARC_DWARF_H
10 #define _ASM_ARC_DWARF_H
11
12 #ifdef __ASSEMBLY__
13
14 #ifdef ARC_DW2_UNWIND_AS_CFI
15
16 #define CFI_STARTPROC   .cfi_startproc
17 #define CFI_ENDPROC     .cfi_endproc
18 #define CFI_DEF_CFA     .cfi_def_cfa
19 #define CFI_REGISTER    .cfi_register
20 #define CFI_REL_OFFSET  .cfi_rel_offset
21 #define CFI_UNDEFINED   .cfi_undefined
22
23 #else
24
25 #define CFI_IGNORE      #
26
27 #define CFI_STARTPROC   CFI_IGNORE
28 #define CFI_ENDPROC     CFI_IGNORE
29 #define CFI_DEF_CFA     CFI_IGNORE
30 #define CFI_REGISTER    CFI_IGNORE
31 #define CFI_REL_OFFSET  CFI_IGNORE
32 #define CFI_UNDEFINED   CFI_IGNORE
33
34 #endif  /* !ARC_DW2_UNWIND_AS_CFI */
35
36 #endif  /* __ASSEMBLY__ */
37
38 #endif  /* _ASM_ARC_DWARF_H */