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:
Joerg Sonnenberger 2014-01-23 18:31:46 +00:00
parent 3cc534ac6d
commit 25468a2ab4
1 changed files with 7 additions and 0 deletions

View File

@ -80,4 +80,11 @@
# define DEFINE_AEABI_FUNCTION_ALIAS(aeabi_name, name)
#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 */