diff options
author | Jonathan Roelofs <jonathan@codesourcery.com> | 2014-05-12 17:38:36 +0000 |
---|---|---|
committer | Jonathan Roelofs <jonathan@codesourcery.com> | 2014-05-12 17:38:36 +0000 |
commit | b351c1aba2602e420ce55ff9339798de55bc175b (patch) | |
tree | 9718121cec7ab571248c7186c8c977f400efe895 /compiler-rt/lib/builtins/assembly.h | |
parent | 1ac44dd087e1701ce8bb8eeed8b5a842ab9e394e (diff) | |
download | bcm5719-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.h | 2 |
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 \ |