summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/profile/InstrProfilingPlatformOther.c
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2017-12-14 18:43:14 +0000
committerVedant Kumar <vsk@apple.com>2017-12-14 18:43:14 +0000
commit5b0d5b45a241a9563d1075fa8e66be941b96443b (patch)
treec84ab73bc6be3f68063549fbf9700a23f541fcf0 /compiler-rt/lib/profile/InstrProfilingPlatformOther.c
parent873f032f3ac3622095df61d96f3a2b6271174ccb (diff)
downloadbcm5719-llvm-5b0d5b45a241a9563d1075fa8e66be941b96443b.tar.gz
bcm5719-llvm-5b0d5b45a241a9563d1075fa8e66be941b96443b.zip
[profile] Port the runtime to Solaris
This includes a few nice bits of refactoring (e.g splitting out the exclusive locking code into a common utility). Patch by Rainer Orth! Differential Revision: https://reviews.llvm.org/D40944 llvm-svn: 320726
Diffstat (limited to 'compiler-rt/lib/profile/InstrProfilingPlatformOther.c')
-rw-r--r--compiler-rt/lib/profile/InstrProfilingPlatformOther.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/compiler-rt/lib/profile/InstrProfilingPlatformOther.c b/compiler-rt/lib/profile/InstrProfilingPlatformOther.c
index b25966487e9..a339abc7f88 100644
--- a/compiler-rt/lib/profile/InstrProfilingPlatformOther.c
+++ b/compiler-rt/lib/profile/InstrProfilingPlatformOther.c
@@ -7,12 +7,13 @@
|*
\*===----------------------------------------------------------------------===*/
-#include "InstrProfiling.h"
-
-#if !defined(__APPLE__) && !defined(__linux__) && !defined(__FreeBSD__)
+#if !defined(__APPLE__) && !defined(__linux__) && !defined(__FreeBSD__) && \
+ !(defined(__sun__) && defined(__svr4__))
#include <stdlib.h>
+#include "InstrProfiling.h"
+
static const __llvm_profile_data *DataFirst = NULL;
static const __llvm_profile_data *DataLast = NULL;
static const char *NamesFirst = NULL;
OpenPOWER on IntegriCloud