summaryrefslogtreecommitdiffstats
path: root/compiler-rt
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2015-12-10 19:50:04 +0000
committerXinliang David Li <davidxl@google.com>2015-12-10 19:50:04 +0000
commit497c51cb8a6ac491f693b97927b78b35f0245a48 (patch)
tree7449f1669eebd815ce5e76645fa9958f896e8f5d /compiler-rt
parent06ea4be2810c123d20061b5390598e3a2bba9d64 (diff)
downloadbcm5719-llvm-497c51cb8a6ac491f693b97927b78b35f0245a48.tar.gz
bcm5719-llvm-497c51cb8a6ac491f693b97927b78b35f0245a48.zip
[PGO] Move impl specific decl to InstrProfilingInternal.h (NFC)
llvm-svn: 255290
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/lib/profile/InstrProfiling.c1
-rw-r--r--compiler-rt/lib/profile/InstrProfilingInternal.h2
-rw-r--r--compiler-rt/lib/profile/InstrProfilingPort.h3
3 files changed, 3 insertions, 3 deletions
diff --git a/compiler-rt/lib/profile/InstrProfiling.c b/compiler-rt/lib/profile/InstrProfiling.c
index 44f8ce5a70d..f5a5022d27a 100644
--- a/compiler-rt/lib/profile/InstrProfiling.c
+++ b/compiler-rt/lib/profile/InstrProfiling.c
@@ -8,6 +8,7 @@
\*===----------------------------------------------------------------------===*/
#include "InstrProfiling.h"
+#include "InstrProfilingInternal.h"
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/compiler-rt/lib/profile/InstrProfilingInternal.h b/compiler-rt/lib/profile/InstrProfilingInternal.h
index 212001bd27e..d247ca43772 100644
--- a/compiler-rt/lib/profile/InstrProfilingInternal.h
+++ b/compiler-rt/lib/profile/InstrProfilingInternal.h
@@ -61,4 +61,6 @@ int llvmWriteProfDataImpl(WriterCallback Writer, void *WriterCtx,
const uint64_t ValueDataSize, const char *NamesBegin,
const char *NamesEnd);
+extern char *(*GetEnvHook)(const char *);
+
#endif
diff --git a/compiler-rt/lib/profile/InstrProfilingPort.h b/compiler-rt/lib/profile/InstrProfilingPort.h
index 9134575fd50..977dc63f747 100644
--- a/compiler-rt/lib/profile/InstrProfilingPort.h
+++ b/compiler-rt/lib/profile/InstrProfilingPort.h
@@ -30,9 +30,6 @@
#define BOOL_CMPXCHG(Ptr, OldV, NewV) BoolCmpXchg((void **)Ptr, OldV, NewV)
#endif
-
-extern char *(*GetEnvHook)(const char *);
-
#if defined(__FreeBSD__) && defined(__i386__)
/* System headers define 'size_t' incorrectly on x64 FreeBSD (prior to
OpenPOWER on IntegriCloud