[llvm-commits] [compiler-rt] r160062 - /compiler-rt/trunk/lib/assembly.h
Nick Kledzik
kledzik at apple.com
Wed Jul 11 12:21:39 PDT 2012
Author: kledzik
Date: Wed Jul 11 14:21:39 2012
New Revision: 160062
URL: http://llvm.org/viewvc/llvm-project?rev=160062&view=rev
Log:
<rdar://problem/11668446> Add .subsections_via_symbols to Darwin assembly files
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=160062&r1=160061&r2=160062&view=diff
==============================================================================
--- compiler-rt/trunk/lib/assembly.h (original)
+++ compiler-rt/trunk/lib/assembly.h Wed Jul 11 14:21:39 2012
@@ -25,9 +25,11 @@
#if defined(__APPLE__)
#define HIDDEN_DIRECTIVE .private_extern
#define LOCAL_LABEL(name) L_##name
+#define FILE_LEVEL_DIRECTIVE .subsections_via_symbols
#else
#define HIDDEN_DIRECTIVE .hidden
#define LOCAL_LABEL(name) .L_##name
+#define FILE_LEVEL_DIRECTIVE
#endif
#define GLUE2(a, b) a ## b
@@ -42,6 +44,7 @@
#endif
#define DEFINE_COMPILERRT_FUNCTION(name) \
+ FILE_LEVEL_DIRECTIVE SEPARATOR \
.globl SYMBOL_NAME(name) SEPARATOR \
DECLARE_SYMBOL_VISIBILITY(name) \
SYMBOL_NAME(name):
More information about the llvm-commits
mailing list