[compiler-rt] r199914 - Add end of function marker, which can be used on ELF to correctly set
Joerg Sonnenberger
joerg at bec.de
Thu Jan 23 10:31:46 PST 2014
Author: joerg
Date: Thu Jan 23 12:31:46 2014
New Revision: 199914
URL: http://llvm.org/viewvc/llvm-project?rev=199914&view=rev
Log:
Add end of function marker, which can be used on ELF to correctly set
the function size.
Modified:
compiler-rt/trunk/lib/assembly.h
Modified: compiler-rt/trunk/lib/assembly.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/assembly.h?rev=199914&r1=199913&r2=199914&view=diff
==============================================================================
--- compiler-rt/trunk/lib/assembly.h (original)
+++ compiler-rt/trunk/lib/assembly.h Thu Jan 23 12:31:46 2014
@@ -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 */
More information about the llvm-commits
mailing list