summaryrefslogtreecommitdiff
path: root/lib/profile/InstrProfilingPlatformOther.c
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2017-12-14 19:01:04 +0000
committerVedant Kumar <vsk@apple.com>2017-12-14 19:01:04 +0000
commitccb69d9a1231219ec7e7962743b3ab1ee3122b65 (patch)
tree0643c7b2d3de82ac7423cefe53921e7d622f1fdc /lib/profile/InstrProfilingPlatformOther.c
parent12e90365ed9cce1179df68586af3ec9d83bb0316 (diff)
[profile] Port the runtime to Solaris (retry)
This includes a few nice bits of refactoring (e.g splitting out the exclusive locking code into a common utility). Hopefully the Windows support is fixed now. Patch by Rainer Orth! Differential Revision: https://reviews.llvm.org/D40944 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@320731 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/profile/InstrProfilingPlatformOther.c')
-rw-r--r--lib/profile/InstrProfilingPlatformOther.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/profile/InstrProfilingPlatformOther.c b/lib/profile/InstrProfilingPlatformOther.c
index b25966487..a339abc7f 100644
--- a/lib/profile/InstrProfilingPlatformOther.c
+++ b/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;