@@ -246,32 +246,32 @@ namespace llvm {
246246 const DataLayout &DL, const TargetLibraryInfo *TLI);
247247
248248 // / Emit a call to the malloc function.
249- Value *emitMalloc (Value *Num, IRBuilderBase &B, const DataLayout &DL ,
250- const TargetLibraryInfo *TLI);
249+ Value *emitMalloc (Type *RetTy, Value *Num, IRBuilderBase &B,
250+ const DataLayout &DL, const TargetLibraryInfo *TLI);
251251
252252 // / Emit a call to the calloc function.
253- Value *emitCalloc (Value *Num, Value *Size, IRBuilderBase &B,
254- const TargetLibraryInfo &TLI, unsigned AddrSpace );
253+ Value *emitCalloc (Type *RetTy, Value *Num, Value *Size, IRBuilderBase &B,
254+ const TargetLibraryInfo &TLI);
255255
256256 // / Emit a call to the hot/cold operator new function.
257- Value *emitHotColdNew (Value *Num, IRBuilderBase &B,
257+ Value *emitHotColdNew (Type *RetTy, Value *Num, IRBuilderBase &B,
258258 const TargetLibraryInfo *TLI, LibFunc NewFunc,
259259 uint8_t HotCold);
260- Value *emitHotColdNewNoThrow (Value *Num , Value *NoThrow, IRBuilderBase &B ,
261- const TargetLibraryInfo *TLI, LibFunc NewFunc ,
262- uint8_t HotCold);
263- Value *emitHotColdNewAligned (Value *Num , Value *Align, IRBuilderBase &B ,
264- const TargetLibraryInfo *TLI, LibFunc NewFunc ,
265- uint8_t HotCold);
266- Value *emitHotColdNewAlignedNoThrow (Value *Num , Value *Align , Value *NoThrow ,
267- IRBuilderBase &B,
260+ Value *emitHotColdNewNoThrow (Type *RetTy , Value *Num, Value *NoThrow ,
261+ IRBuilderBase &B, const TargetLibraryInfo *TLI,
262+ LibFunc NewFunc, uint8_t HotCold);
263+ Value *emitHotColdNewAligned (Type *RetTy , Value *Num, Value *Align ,
264+ IRBuilderBase &B, const TargetLibraryInfo *TLI,
265+ LibFunc NewFunc, uint8_t HotCold);
266+ Value *emitHotColdNewAlignedNoThrow (Type *RetTy , Value *Num , Value *Align ,
267+ Value *NoThrow, IRBuilderBase &B,
268268 const TargetLibraryInfo *TLI,
269269 LibFunc NewFunc, uint8_t HotCold);
270- Value *emitHotColdSizeReturningNew (Value *Num, IRBuilderBase &B,
270+ Value *emitHotColdSizeReturningNew (Type *RetTy, Value *Num, IRBuilderBase &B,
271271 const TargetLibraryInfo *TLI,
272272 LibFunc NewFunc, uint8_t HotCold);
273- Value *emitHotColdSizeReturningNewAligned (Value *Num , Value *Align ,
274- IRBuilderBase &B,
273+ Value *emitHotColdSizeReturningNewAligned (Type *RetTy , Value *Num ,
274+ Value *Align, IRBuilderBase &B,
275275 const TargetLibraryInfo *TLI,
276276 LibFunc NewFunc, uint8_t HotCold);
277277}
0 commit comments