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 | 0ca5bd4a46701e46191a9c33a9f9227db2352ecf (patch) | |
| tree | 7b52133b107c54722eebfb247bf148162e4ee837 /compiler-rt/lib/profile/InstrProfiling.h | |
| parent | 6290fc9154fd6af0069f77bcc6828c461e096f1f (diff) | |
| download | bcm5719-llvm-0ca5bd4a46701e46191a9c33a9f9227db2352ecf.tar.gz bcm5719-llvm-0ca5bd4a46701e46191a9c33a9f9227db2352ecf.zip | |
[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
llvm-svn: 253883
Diffstat (limited to 'compiler-rt/lib/profile/InstrProfiling.h')
| -rw-r--r-- | compiler-rt/lib/profile/InstrProfiling.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/compiler-rt/lib/profile/InstrProfiling.h b/compiler-rt/lib/profile/InstrProfiling.h index c8178fce924..579d4fe7254 100644 --- a/compiler-rt/lib/profile/InstrProfiling.h +++ b/compiler-rt/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; |

