summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/builtins/assembly.h
diff options
context:
space:
mode:
authorJonathan Roelofs <jonathan@codesourcery.com>2014-05-12 17:38:36 +0000
committerJonathan Roelofs <jonathan@codesourcery.com>2014-05-12 17:38:36 +0000
commitb351c1aba2602e420ce55ff9339798de55bc175b (patch)
tree9718121cec7ab571248c7186c8c977f400efe895 /compiler-rt/lib/builtins/assembly.h
parent1ac44dd087e1701ce8bb8eeed8b5a842ab9e394e (diff)
downloadbcm5719-llvm-b351c1aba2602e420ce55ff9339798de55bc175b.tar.gz
bcm5719-llvm-b351c1aba2602e420ce55ff9339798de55bc175b.zip
Move .subsections_via_symbols directives into DEFINE_COMPILERRT_PRIVATE_FUNCTION
llvm-svn: 208603
Diffstat (limited to 'compiler-rt/lib/builtins/assembly.h')
-rw-r--r--compiler-rt/lib/builtins/assembly.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/lib/builtins/assembly.h b/compiler-rt/lib/builtins/assembly.h
index 1a9f79cb632..31ecd149d69 100644
--- a/compiler-rt/lib/builtins/assembly.h
+++ b/compiler-rt/lib/builtins/assembly.h
@@ -25,6 +25,7 @@
#if defined(__APPLE__)
#define HIDDEN_DIRECTIVE .private_extern
#define LOCAL_LABEL(name) L_##name
+// tell linker it can break up file at label boundaries
#define FILE_LEVEL_DIRECTIVE .subsections_via_symbols
#define SYMBOL_IS_FUNC(name)
#else
@@ -103,6 +104,7 @@
SYMBOL_NAME(name):
#define DEFINE_COMPILERRT_PRIVATE_FUNCTION(name) \
+ FILE_LEVEL_DIRECTIVE SEPARATOR \
.globl SYMBOL_NAME(name) SEPARATOR \
SYMBOL_IS_FUNC(SYMBOL_NAME(name)) SEPARATOR \
HIDDEN_DIRECTIVE SYMBOL_NAME(name) SEPARATOR \
OpenPOWER on IntegriCloud