[compiler-rt] r255290 - [PGO] Move impl specific decl to InstrProfilingInternal.h (NFC)
Xinliang David Li via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 10 11:50:04 PST 2015
Author: davidxl
Date: Thu Dec 10 13:50:04 2015
New Revision: 255290
URL: http://llvm.org/viewvc/llvm-project?rev=255290&view=rev
Log:
[PGO] Move impl specific decl to InstrProfilingInternal.h (NFC)
Modified:
compiler-rt/trunk/lib/profile/InstrProfiling.c
compiler-rt/trunk/lib/profile/InstrProfilingInternal.h
compiler-rt/trunk/lib/profile/InstrProfilingPort.h
Modified: compiler-rt/trunk/lib/profile/InstrProfiling.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfiling.c?rev=255290&r1=255289&r2=255290&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfiling.c (original)
+++ compiler-rt/trunk/lib/profile/InstrProfiling.c Thu Dec 10 13:50:04 2015
@@ -8,6 +8,7 @@
\*===----------------------------------------------------------------------===*/
#include "InstrProfiling.h"
+#include "InstrProfilingInternal.h"
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
Modified: compiler-rt/trunk/lib/profile/InstrProfilingInternal.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfilingInternal.h?rev=255290&r1=255289&r2=255290&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfilingInternal.h (original)
+++ compiler-rt/trunk/lib/profile/InstrProfilingInternal.h Thu Dec 10 13:50:04 2015
@@ -61,4 +61,6 @@ int llvmWriteProfDataImpl(WriterCallback
const uint64_t ValueDataSize, const char *NamesBegin,
const char *NamesEnd);
+extern char *(*GetEnvHook)(const char *);
+
#endif
Modified: compiler-rt/trunk/lib/profile/InstrProfilingPort.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfilingPort.h?rev=255290&r1=255289&r2=255290&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfilingPort.h (original)
+++ compiler-rt/trunk/lib/profile/InstrProfilingPort.h Thu Dec 10 13:50:04 2015
@@ -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
More information about the llvm-commits
mailing list