diff options
author | Xinliang David Li <davidxl@google.com> | 2015-11-23 17:09:40 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2015-11-23 17:09:40 +0000 |
commit | 23376279ecdecdcbdc9597eeb8491e17488087ac (patch) | |
tree | faa41bf8dfe1eaed7ed92876d8c8b6b7e71239d8 /lib/profile/InstrProfiling.h | |
parent | 0c768e16de465cea787244e43b18562e2c424dfb (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.h | 7 |
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; |