Skip to content

Commit 3946095

Browse files
committed
[MemoryBuiltins] Remove unused isOpNewLikeFn() (NFC)
This function is no longer used since 2cafbcb.
1 parent b56f6f1 commit 3946095

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

llvm/include/llvm/Analysis/MemoryBuiltins.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,6 @@ bool isReallocLikeFn(const Value *V, const TargetLibraryInfo *TLI);
8888
/// reallocates memory (e.g., realloc).
8989
bool isReallocLikeFn(const Function *F, const TargetLibraryInfo *TLI);
9090

91-
/// Tests if a value is a call or invoke to a library function that
92-
/// allocates memory and throws if an allocation failed (e.g., new).
93-
bool isOpNewLikeFn(const Value *V, const TargetLibraryInfo *TLI);
94-
9591
//===----------------------------------------------------------------------===//
9692
// free Call Utility Functions.
9793
//

llvm/lib/Analysis/MemoryBuiltins.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -286,12 +286,6 @@ bool llvm::isReallocLikeFn(const Function *F, const TargetLibraryInfo *TLI) {
286286
return getAllocationDataForFunction(F, ReallocLike, TLI).hasValue();
287287
}
288288

289-
/// Tests if a value is a call or invoke to a library function that
290-
/// allocates memory and throws if an allocation failed (e.g., new).
291-
bool llvm::isOpNewLikeFn(const Value *V, const TargetLibraryInfo *TLI) {
292-
return getAllocationData(V, OpNewLike, TLI).hasValue();
293-
}
294-
295289
bool llvm::isAllocRemovable(const CallBase *CB, const TargetLibraryInfo *TLI) {
296290
assert(isAllocationFn(CB, TLI));
297291

0 commit comments

Comments
 (0)