diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-05-18 18:39:10 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-05-18 18:39:10 +0000 |
commit | 9a614bd488211369e787a62dba2041bd42ddc6f5 (patch) | |
tree | 5afa87be1cbfaf60268239ef1e862c697f12683c /compiler-rt/lib/builtins/assembly.h | |
parent | f66ed2d430877551ec0bb0fa92daeb42bfa1e725 (diff) | |
download | bcm5719-llvm-9a614bd488211369e787a62dba2041bd42ddc6f5.tar.gz bcm5719-llvm-9a614bd488211369e787a62dba2041bd42ddc6f5.zip |
assembly: rework HIDDEN_DIRECTIVE to accomodate COFF
Rename the HIDDEN_DIRECTIVE macro to HIDDEN and give it a parameter providing
the name of the symbol to be given hidden visibility. This makes the macros
more amenable to COFF.
llvm-svn: 209094
Diffstat (limited to 'compiler-rt/lib/builtins/assembly.h')
-rw-r--r-- | compiler-rt/lib/builtins/assembly.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler-rt/lib/builtins/assembly.h b/compiler-rt/lib/builtins/assembly.h index 3d073db4009..5d22607f22a 100644 --- a/compiler-rt/lib/builtins/assembly.h +++ b/compiler-rt/lib/builtins/assembly.h @@ -23,13 +23,13 @@ #endif #if defined(__APPLE__) -#define HIDDEN_DIRECTIVE .private_extern +#define HIDDEN(name) .private_extern name #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 -#define HIDDEN_DIRECTIVE .hidden +#define HIDDEN(name) .hidden name #define LOCAL_LABEL(name) .L_##name #define FILE_LEVEL_DIRECTIVE #if defined(__arm__) @@ -90,7 +90,7 @@ #ifdef VISIBILITY_HIDDEN #define DECLARE_SYMBOL_VISIBILITY(name) \ - HIDDEN_DIRECTIVE SYMBOL_NAME(name) SEPARATOR + HIDDEN(SYMBOL_NAME(name)) SEPARATOR #else #define DECLARE_SYMBOL_VISIBILITY(name) #endif @@ -106,13 +106,13 @@ FILE_LEVEL_DIRECTIVE SEPARATOR \ .globl SYMBOL_NAME(name) SEPARATOR \ SYMBOL_IS_FUNC(SYMBOL_NAME(name)) SEPARATOR \ - HIDDEN_DIRECTIVE SYMBOL_NAME(name) SEPARATOR \ + HIDDEN(SYMBOL_NAME(name)) SEPARATOR \ SYMBOL_NAME(name): #define DEFINE_COMPILERRT_PRIVATE_FUNCTION_UNMANGLED(name) \ .globl name SEPARATOR \ SYMBOL_IS_FUNC(name) SEPARATOR \ - HIDDEN_DIRECTIVE name SEPARATOR \ + HIDDEN(name) SEPARATOR \ name: #define DEFINE_COMPILERRT_FUNCTION_ALIAS(name, target) \ |