Skip to content

Commit b56f6f1

Browse files
committed
[MemoryBuiltins] Remove unused isStrdupLikeFn() function (NFC)
This function is no longer used after dcbc91f.
1 parent 3cef3cf commit b56f6f1

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
@@ -92,10 +92,6 @@ bool isReallocLikeFn(const Function *F, const TargetLibraryInfo *TLI);
9292
/// allocates memory and throws if an allocation failed (e.g., new).
9393
bool isOpNewLikeFn(const Value *V, const TargetLibraryInfo *TLI);
9494

95-
/// Tests if a value is a call or invoke to a library function that
96-
/// allocates memory (strdup, strndup).
97-
bool isStrdupLikeFn(const Value *V, const TargetLibraryInfo *TLI);
98-
9995
//===----------------------------------------------------------------------===//
10096
// free Call Utility Functions.
10197
//

llvm/lib/Analysis/MemoryBuiltins.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -292,12 +292,6 @@ bool llvm::isOpNewLikeFn(const Value *V, const TargetLibraryInfo *TLI) {
292292
return getAllocationData(V, OpNewLike, TLI).hasValue();
293293
}
294294

295-
/// Tests if a value is a call or invoke to a library function that
296-
/// allocates memory (strdup, strndup).
297-
bool llvm::isStrdupLikeFn(const Value *V, const TargetLibraryInfo *TLI) {
298-
return getAllocationData(V, StrDupLike, TLI).hasValue();
299-
}
300-
301295
bool llvm::isAllocRemovable(const CallBase *CB, const TargetLibraryInfo *TLI) {
302296
assert(isAllocationFn(CB, TLI));
303297

0 commit comments

Comments
 (0)