[MemoryBuiltins] Delete dead code [NFC]
authorPhilip Reames <listmail@philipreames.com>
Tue, 29 Dec 2015 17:04:43 +0000 (17:04 +0000)
committerPhilip Reames <listmail@philipreames.com>
Tue, 29 Dec 2015 17:04:43 +0000 (17:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256565 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/MemoryBuiltins.h
lib/Analysis/MemoryBuiltins.cpp

index 805a43dfb0705780e7e681c43ad66d6c40ce4db9..87fb3efaf50e3e33a6255882328f2ff99a076757 100644 (file)
@@ -59,11 +59,6 @@ bool isCallocLikeFn(const Value *V, const TargetLibraryInfo *TLI,
 bool isAllocLikeFn(const Value *V, const TargetLibraryInfo *TLI,
                    bool LookThroughBitCast = false);
 
-/// \brief Tests if a value is a call or invoke to a library function that
-/// reallocates memory (such as realloc).
-bool isReallocLikeFn(const Value *V, const TargetLibraryInfo *TLI,
-                     bool LookThroughBitCast = false);
-
 /// \brief Tests if a value is a call or invoke to a library function that
 /// allocates memory and never returns null (such as operator new).
 bool isOperatorNewLikeFn(const Value *V, const TargetLibraryInfo *TLI,
index c64be771f1f025525e7a7fe19d1ee533797e44e3..b19ecadd31619ed627e5f7f7d11a998c9a9f11f4 100644 (file)
@@ -187,13 +187,6 @@ bool llvm::isAllocLikeFn(const Value *V, const TargetLibraryInfo *TLI,
   return getAllocationData(V, AllocLike, TLI, LookThroughBitCast);
 }
 
-/// \brief Tests if a value is a call or invoke to a library function that
-/// reallocates memory (such as realloc).
-bool llvm::isReallocLikeFn(const Value *V, const TargetLibraryInfo *TLI,
-                           bool LookThroughBitCast) {
-  return getAllocationData(V, ReallocLike, TLI, LookThroughBitCast);
-}
-
 /// \brief Tests if a value is a call or invoke to a library function that
 /// allocates memory and never returns null (such as operator new).
 bool llvm::isOperatorNewLikeFn(const Value *V, const TargetLibraryInfo *TLI,