diff options
Diffstat (limited to 'compiler-rt/lib/profile/InstrProfiling.h')
| -rw-r--r-- | compiler-rt/lib/profile/InstrProfiling.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler-rt/lib/profile/InstrProfiling.h b/compiler-rt/lib/profile/InstrProfiling.h index cc1fcb16a8d..c8178fce924 100644 --- a/compiler-rt/lib/profile/InstrProfiling.h +++ b/compiler-rt/lib/profile/InstrProfiling.h @@ -13,9 +13,12 @@ #ifdef _MSC_VER # define LLVM_ALIGNAS(x) __declspec(align(x)) #elif __GNUC__ -# define LLVM_ALIGNAS(x) __attribute__((aligned(x))) +#define LLVM_ALIGNAS(x) __attribute__((aligned(x))) #endif +#define LLVM_LIBRARY_VISIBILITY __attribute__((visibility("hidden"))) +#define LLVM_SECTION(Sect) __attribute__((section(Sect))) + #if defined(__FreeBSD__) && defined(__i386__) /* System headers define 'size_t' incorrectly on x64 FreeBSD (prior to |

