summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/profile/InstrProfilingWriter.c
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2015-11-23 04:38:17 +0000
committerXinliang David Li <davidxl@google.com>2015-11-23 04:38:17 +0000
commit6fe18f4fbaffcbe25ebda151cc8beaaf7a730f5b (patch)
tree5f5cbbb0856a29560d07b5f4d8d85090b5e36545 /compiler-rt/lib/profile/InstrProfilingWriter.c
parent970fe56e4102d92c71ed1f732f047738e8c081c7 (diff)
downloadbcm5719-llvm-6fe18f4fbaffcbe25ebda151cc8beaaf7a730f5b.tar.gz
bcm5719-llvm-6fe18f4fbaffcbe25ebda151cc8beaaf7a730f5b.zip
[PGO] Compiler-rt cleanup -- introduces macros for various macros
This makes code more readable and be made more portable in the future. There is no functional change. llvm-svn: 253845
Diffstat (limited to 'compiler-rt/lib/profile/InstrProfilingWriter.c')
-rw-r--r--compiler-rt/lib/profile/InstrProfilingWriter.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/compiler-rt/lib/profile/InstrProfilingWriter.c b/compiler-rt/lib/profile/InstrProfilingWriter.c
index e1aecec8966..ec3bd1654a5 100644
--- a/compiler-rt/lib/profile/InstrProfilingWriter.c
+++ b/compiler-rt/lib/profile/InstrProfilingWriter.c
@@ -10,9 +10,10 @@
#include "InstrProfiling.h"
#include "InstrProfilingInternal.h"
-__attribute__((visibility("hidden"))) int
-llvmWriteProfData(WriterCallback Writer, void *WriterCtx,
- const uint8_t *ValueDataBegin, const uint64_t ValueDataSize) {
+LLVM_LIBRARY_VISIBILITY int llvmWriteProfData(WriterCallback Writer,
+ void *WriterCtx,
+ const uint8_t *ValueDataBegin,
+ const uint64_t ValueDataSize) {
/* Match logic in __llvm_profile_write_buffer(). */
const __llvm_profile_data *DataBegin = __llvm_profile_begin_data();
const __llvm_profile_data *DataEnd = __llvm_profile_end_data();
@@ -25,7 +26,7 @@ llvmWriteProfData(WriterCallback Writer, void *WriterCtx,
ValueDataSize, NamesBegin, NamesEnd);
}
-__attribute__((visibility("hidden"))) int llvmWriteProfDataImpl(
+LLVM_LIBRARY_VISIBILITY int llvmWriteProfDataImpl(
WriterCallback Writer, void *WriterCtx,
const __llvm_profile_data *DataBegin, const __llvm_profile_data *DataEnd,
const uint64_t *CountersBegin, const uint64_t *CountersEnd,
OpenPOWER on IntegriCloud