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 | 238b9fd4b7be732c87629d8fe7c583bbe7c002e9 (patch) | |
tree | 4e4c60590a0e4bf5564f1a5eceafae2f5e2ffd46 /lib/builtins/assembly.h | |
parent | 177df3c84ac46e0a43926d2792d24671f08362f7 (diff) | |
download | compiler-rt-238b9fd4b7be732c87629d8fe7c583bbe7c002e9.tar.gz |
Move .subsections_via_symbols directives into DEFINE_COMPILERRT_PRIVATE_FUNCTION
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208603 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/builtins/assembly.h')
-rw-r--r-- | lib/builtins/assembly.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/builtins/assembly.h b/lib/builtins/assembly.h index 1a9f79cb6..31ecd149d 100644 --- a/lib/builtins/assembly.h +++ b/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 \ |