summaryrefslogtreecommitdiff
path: root/lib/profile/InstrProfiling.h
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2015-11-23 17:09:40 +0000
committerXinliang David Li <davidxl@google.com>2015-11-23 17:09:40 +0000
commit23376279ecdecdcbdc9597eeb8491e17488087ac (patch)
treefaa41bf8dfe1eaed7ed92876d8c8b6b7e71239d8 /lib/profile/InstrProfiling.h
parent0c768e16de465cea787244e43b18562e2c424dfb (diff)
[PGO] Start use InstrProf template file in compiler-rt/lib/profile
- Replace use of __llvm_profile_value_data with common data structure. - Remve duplicate InstrProfValueNode git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@253883 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/profile/InstrProfiling.h')
-rw-r--r--lib/profile/InstrProfiling.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/profile/InstrProfiling.h b/lib/profile/InstrProfiling.h
index c8178fce9..579d4fe72 100644
--- a/lib/profile/InstrProfiling.h
+++ b/lib/profile/InstrProfiling.h
@@ -45,17 +45,14 @@ typedef unsigned long int uintptr_t;
#endif /* defined(__FreeBSD__) && defined(__i386__) */
+#include "InstrProfData.inc"
+
enum ValueKind {
IPVK_IndirectCallTarget = 0,
IPVK_First = IPVK_IndirectCallTarget,
IPVK_Last = IPVK_IndirectCallTarget
};
-typedef struct __llvm_profile_value_data {
- uint64_t TargetValue;
- uint64_t NumTaken;
-} __llvm_profile_value_data;
-
typedef void *IntPtrT;
typedef struct LLVM_ALIGNAS(8) __llvm_profile_data {
const uint32_t NameSize;