Add end of function marker, which can be used on ELF to correctly set
the function size. llvm-svn: 199914
This commit is contained in:
parent
3cc534ac6d
commit
25468a2ab4
|
@ -80,4 +80,11 @@
|
||||||
# define DEFINE_AEABI_FUNCTION_ALIAS(aeabi_name, name)
|
# define DEFINE_AEABI_FUNCTION_ALIAS(aeabi_name, name)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __ELF__
|
||||||
|
#define END_COMPILERRT_FUNCTION(name) \
|
||||||
|
.size SYMBOL_NAME(name), . - SYMBOL_NAME(name)
|
||||||
|
#else
|
||||||
|
#define END_COMPILERRT_FUNCTION(name)
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* COMPILERRT_ASSEMBLY_H */
|
#endif /* COMPILERRT_ASSEMBLY_H */
|
||||||
|
|
Loading…
Reference in New Issue