diff options
author | Nikita Popov <npopov@redhat.com> | 2022-01-11 12:25:39 +0100 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2022-01-11 12:26:20 +0100 |
commit | b56f6f1913a8061bfd8e704cd2794150660a859d (patch) | |
tree | 50e18894ddc7f8604be325e566f4975a096d6caa | |
parent | 3cef3cf02f09e397c471cf008060c89b34951959 (diff) | |
download | llvm-b56f6f1913a8061bfd8e704cd2794150660a859d.tar.gz |
[MemoryBuiltins] Remove unused isStrdupLikeFn() function (NFC)
This function is no longer used after
dcbc91f40c2e6ff578667020f7c6a05c25149865.
-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)); |