mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-22 10:24:26 +00:00
add support for calloc to objectsize lowering
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156102 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -68,6 +68,17 @@ Type *getMallocAllocatedType(const CallInst *CI);
|
||||
Value *getMallocArraySize(CallInst *CI, const TargetData *TD,
|
||||
bool LookThroughSExt = false);
|
||||
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// calloc Call Utility Functions.
|
||||
//
|
||||
|
||||
/// extractCallocCall - Returns the corresponding CallInst if the instruction
|
||||
/// is a calloc call.
|
||||
const CallInst *extractCallocCall(const Value *I);
|
||||
CallInst *extractCallocCall(Value *I);
|
||||
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// free Call Utility Functions.
|
||||
//
|
||||
|
Reference in New Issue
Block a user