@@ -81,9 +81,9 @@ INSTR_PROF_DATA(const IntPtrT, IntPtrTy, BitmapPtr, RelativeBitmapPtr)
81
81
* function name hashes during the conversion from raw to merged profile
82
82
* data.
83
83
*/
84
- INSTR_PROF_DATA(const IntPtrT, llvm::Type::getInt8PtrTy (Ctx), FunctionPointer, \
84
+ INSTR_PROF_DATA(const IntPtrT, llvm::PointerType::getUnqual (Ctx), FunctionPointer, \
85
85
FunctionAddr)
86
- INSTR_PROF_DATA(IntPtrT, llvm::Type::getInt8PtrTy (Ctx), Values, \
86
+ INSTR_PROF_DATA(IntPtrT, llvm::PointerType::getUnqual (Ctx), Values, \
87
87
ValuesPtrExpr)
88
88
INSTR_PROF_DATA(const uint32_t , llvm::Type::getInt32Ty(Ctx), NumCounters, \
89
89
ConstantInt::get(llvm::Type::getInt32Ty(Ctx), NumCounters))
@@ -116,7 +116,7 @@ INSTR_PROF_VALUE_NODE(uint64_t, llvm::Type::getInt64Ty(Ctx), Value, \
116
116
ConstantInt::get(llvm::Type::GetInt64Ty(Ctx), 0))
117
117
INSTR_PROF_VALUE_NODE(uint64_t , llvm::Type::getInt64Ty(Ctx), Count, \
118
118
ConstantInt::get(llvm::Type::GetInt64Ty(Ctx), 0))
119
- INSTR_PROF_VALUE_NODE(PtrToNodeT, llvm::Type::getInt8PtrTy (Ctx), Next, \
119
+ INSTR_PROF_VALUE_NODE(PtrToNodeT, llvm::PointerType::getUnqual (Ctx), Next, \
120
120
ConstantInt::get(llvm::Type::GetInt8PtrTy(Ctx), 0))
121
121
#undef INSTR_PROF_VALUE_NODE
122
122
/* INSTR_PROF_VALUE_NODE end. */
@@ -160,7 +160,7 @@ INSTR_PROF_RAW_HEADER(uint64_t, ValueKindLast, IPVK_Last)
160
160
#endif
161
161
VALUE_PROF_FUNC_PARAM (uint64_t , TargetValue, Type::getInt64Ty(Ctx)) \
162
162
INSTR_PROF_COMMA
163
- VALUE_PROF_FUNC_PARAM(void *, Data, Type::getInt8PtrTy (Ctx)) INSTR_PROF_COMMA
163
+ VALUE_PROF_FUNC_PARAM(void *, Data, PointerType::getUnqual (Ctx)) INSTR_PROF_COMMA
164
164
VALUE_PROF_FUNC_PARAM(uint32_t , CounterIndex, Type::getInt32Ty(Ctx))
165
165
#undef VALUE_PROF_FUNC_PARAM
166
166
#undef INSTR_PROF_COMMA
@@ -213,9 +213,9 @@ VALUE_PROF_KIND(IPVK_Last, IPVK_MemOPSize, "last")
213
213
#define INSTR_PROF_DATA_DEFINED
214
214
#endif
215
215
#ifdef COVMAP_V1
216
- COVMAP_FUNC_RECORD (const IntPtrT, llvm::Type::getInt8PtrTy (Ctx), \
216
+ COVMAP_FUNC_RECORD (const IntPtrT, llvm::PointerType::getUnqual (Ctx), \
217
217
NamePtr, llvm::ConstantExpr::getBitCast(NamePtr, \
218
- llvm::Type::getInt8PtrTy (Ctx)))
218
+ llvm::PointerType::getUnqual (Ctx)))
219
219
COVMAP_FUNC_RECORD(const uint32_t , llvm::Type::getInt32Ty(Ctx), NameSize, \
220
220
llvm::ConstantInt::get(llvm::Type::getInt32Ty(Ctx), \
221
221
NameValue.size()))
@@ -350,7 +350,7 @@ typedef struct ValueProfRecord {
350
350
* Do byte swap for this instance. \c Old is the original order before
351
351
* the swap, and \c New is the New byte order.
352
352
*/
353
- void swapBytes (support ::endianness Old, support ::endianness New);
353
+ void swapBytes (llvm ::endianness Old, llvm ::endianness New);
354
354
#endif
355
355
} ValueProfRecord;
356
356
@@ -405,15 +405,15 @@ typedef struct ValueProfData {
405
405
static Expected<std::unique_ptr<ValueProfData>>
406
406
getValueProfData (const unsigned char *SrcBuffer,
407
407
const unsigned char *const SrcBufferEnd,
408
- support ::endianness SrcDataEndianness);
408
+ llvm ::endianness SrcDataEndianness);
409
409
/* !
410
410
* Swap byte order from \c Endianness order to host byte order.
411
411
*/
412
- void swapBytesToHost (support ::endianness Endianness);
412
+ void swapBytesToHost (llvm ::endianness Endianness);
413
413
/* !
414
414
* Swap byte order from host byte order to \c Endianness order.
415
415
*/
416
- void swapBytesFromHost (support ::endianness Endianness);
416
+ void swapBytesFromHost (llvm ::endianness Endianness);
417
417
/* !
418
418
* Return the total size of \c ValueProfileData.
419
419
*/
0 commit comments