From 497c51cb8a6ac491f693b97927b78b35f0245a48 Mon Sep 17 00:00:00 2001 From: Xinliang David Li Date: Thu, 10 Dec 2015 19:50:04 +0000 Subject: [PATCH] [PGO] Move impl specific decl to InstrProfilingInternal.h (NFC) llvm-svn: 255290 --- compiler-rt/lib/profile/InstrProfiling.c | 1 + compiler-rt/lib/profile/InstrProfilingInternal.h | 2 ++ compiler-rt/lib/profile/InstrProfilingPort.h | 3 --- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler-rt/lib/profile/InstrProfiling.c b/compiler-rt/lib/profile/InstrProfiling.c index 44f8ce5..f5a5022 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 #include #include diff --git a/compiler-rt/lib/profile/InstrProfilingInternal.h b/compiler-rt/lib/profile/InstrProfilingInternal.h index 212001b..d247ca4 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 9134575..977dc63 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 -- 2.7.4