diff options
-rw-r--r-- | llvm/include/llvm/Analysis/MemoryBuiltins.h | 4 | ||||
-rw-r--r-- | llvm/lib/Analysis/MemoryBuiltins.cpp | 6 |
2 files changed, 0 insertions, 10 deletions
diff --git a/llvm/include/llvm/Analysis/MemoryBuiltins.h b/llvm/include/llvm/Analysis/MemoryBuiltins.h index ee1de77fc206..b2a07145610e 100644 --- a/llvm/include/llvm/Analysis/MemoryBuiltins.h +++ b/llvm/include/llvm/Analysis/MemoryBuiltins.h @@ -92,10 +92,6 @@ bool isReallocLikeFn(const Function *F, const TargetLibraryInfo *TLI); /// allocates memory and throws if an allocation failed (e.g., new). bool isOpNewLikeFn(const Value *V, const TargetLibraryInfo *TLI); -/// Tests if a value is a call or invoke to a library function that -/// allocates memory (strdup, strndup). -bool isStrdupLikeFn(const Value *V, const TargetLibraryInfo *TLI); - //===----------------------------------------------------------------------===// // free Call Utility Functions. // diff --git a/llvm/lib/Analysis/MemoryBuiltins.cpp b/llvm/lib/Analysis/MemoryBuiltins.cpp index 48c01fbae11b..7955b34fe1fa 100644 --- a/llvm/lib/Analysis/MemoryBuiltins.cpp +++ b/llvm/lib/Analysis/MemoryBuiltins.cpp @@ -292,12 +292,6 @@ bool llvm::isOpNewLikeFn(const Value *V, const TargetLibraryInfo *TLI) { return getAllocationData(V, OpNewLike, TLI).hasValue(); } -/// Tests if a value is a call or invoke to a library function that -/// allocates memory (strdup, strndup). -bool llvm::isStrdupLikeFn(const Value *V, const TargetLibraryInfo *TLI) { - return getAllocationData(V, StrDupLike, TLI).hasValue(); -} - bool llvm::isAllocRemovable(const CallBase *CB, const TargetLibraryInfo *TLI) { assert(isAllocationFn(CB, TLI)); |