forked from OSchip/llvm-project
builtins: add missing file
Add (missing) definition of COMPILER_RT_EXPORT which is meant to be used for decorating functions that are meant to be exported. This is useful for platforms where exports and imports must be decorated explicitly (i.e. Windows). llvm-svn: 208593
This commit is contained in:
parent
440000d6ec
commit
a374f43ec8
|
@ -22,13 +22,19 @@
|
|||
|
||||
/* ABI macro definitions */
|
||||
|
||||
/*
|
||||
* TODO define this appropriately for targets that require explicit export
|
||||
* declarations (i.e. Windows)
|
||||
*/
|
||||
#define COMPILER_RT_EXPORT
|
||||
|
||||
#if __ARM_EABI__
|
||||
# define ARM_EABI_FNALIAS(aeabi_name, name) \
|
||||
void __aeabi_##aeabi_name() __attribute__((alias("__" #name)));
|
||||
# define COMPILER_RT_ABI __attribute__((pcs("aapcs")))
|
||||
# define COMPILER_RT_ABI COMPILER_RT_EXPORT __attribute__((pcs("aapcs")))
|
||||
#else
|
||||
# define ARM_EABI_FNALIAS(aeabi_name, name)
|
||||
# define COMPILER_RT_ABI
|
||||
# define COMPILER_RT_ABI COMPILER_RT_EXPORT
|
||||
#endif
|
||||
|
||||
#if defined(__NetBSD__) && (defined(_KERNEL) || defined(_STANDALONE))
|
||||
|
|
Loading…
Reference in New Issue