forked from OSchip/llvm-project
Delete unused extractCallocCall routine [NFC]
This commit is contained in:
parent
cffd268316
commit
4b0fc924a9
|
@ -146,18 +146,6 @@ Value *getMallocArraySize(CallInst *CI, const DataLayout &DL,
|
|||
const TargetLibraryInfo *TLI,
|
||||
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, const TargetLibraryInfo *TLI);
|
||||
inline CallInst *extractCallocCall(Value *I, const TargetLibraryInfo *TLI) {
|
||||
return const_cast<CallInst*>(extractCallocCall((const Value*)I, TLI));
|
||||
}
|
||||
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// free Call Utility Functions.
|
||||
//
|
||||
|
|
|
@ -422,13 +422,6 @@ Value *llvm::getMallocArraySize(CallInst *CI, const DataLayout &DL,
|
|||
return computeArraySize(CI, DL, TLI, LookThroughSExt);
|
||||
}
|
||||
|
||||
/// extractCallocCall - Returns the corresponding CallInst if the instruction
|
||||
/// is a calloc call.
|
||||
const CallInst *llvm::extractCallocCall(const Value *I,
|
||||
const TargetLibraryInfo *TLI) {
|
||||
return isCallocLikeFn(I, TLI) ? cast<CallInst>(I) : nullptr;
|
||||
}
|
||||
|
||||
/// isLibFreeFunction - Returns true if the function is a builtin free()
|
||||
bool llvm::isLibFreeFunction(const Function *F, const LibFunc TLIFn) {
|
||||
unsigned ExpectedNumParams;
|
||||
|
|
Loading…
Reference in New Issue