Move .subsections_via_symbols directives into DEFINE_COMPILERRT_PRIVATE_FUNCTION

llvm-svn: 208603
This commit is contained in:
Jonathan Roelofs 2014-05-12 17:38:36 +00:00
parent 1ac44dd087
commit b351c1aba2
7 changed files with 2 additions and 15 deletions

View File

@ -31,5 +31,3 @@ DEFINE_COMPILERRT_PRIVATE_FUNCTION(__restore_vfp_d8_d15_regs)
bx lr // return to prolog
END_COMPILERRT_FUNCTION(__restore_vfp_d8_d15_regs)
// tell linker it can break up file at label boundaries
.subsections_via_symbols

View File

@ -31,5 +31,3 @@ DEFINE_COMPILERRT_PRIVATE_FUNCTION(__save_vfp_d8_d15_regs)
bx lr // return to prolog
END_COMPILERRT_FUNCTION(__save_vfp_d8_d15_regs)
// tell linker it can break up file at label boundaries
.subsections_via_symbols

View File

@ -42,5 +42,3 @@ DEFINE_COMPILERRT_PRIVATE_FUNCTION(__switch16)
bx ip // jump to computed label
END_COMPILERRT_FUNCTION(__switch16)
// tell linker it can break up file at label boundaries
.subsections_via_symbols

View File

@ -42,6 +42,3 @@ DEFINE_COMPILERRT_PRIVATE_FUNCTION(__switch32)
bx ip // jump to computed label
END_COMPILERRT_FUNCTION(__switch32)
// tell linker it can break up file at label boundaries
.subsections_via_symbols

View File

@ -40,6 +40,3 @@ DEFINE_COMPILERRT_PRIVATE_FUNCTION(__switch8)
bx ip // jump to computed label
END_COMPILERRT_FUNCTION(__switch8)
// tell linker it can break up file at label boundaries
.subsections_via_symbols

View File

@ -40,6 +40,3 @@ DEFINE_COMPILERRT_PRIVATE_FUNCTION(__switchu8)
bx ip // jump to computed label
END_COMPILERRT_FUNCTION(__switchu8)
// tell linker it can break up file at label boundaries
.subsections_via_symbols

View File

@ -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 \