diff options
author | Nuno Lopes <nunoplopes@sapo.pt> | 2012-06-22 00:25:01 +0000 |
---|---|---|
committer | Nuno Lopes <nunoplopes@sapo.pt> | 2012-06-22 00:25:01 +0000 |
commit | eb7c6865cd8d44a882aa7c3e10e1d976f333344f (patch) | |
tree | bca5f7a0dabf590c9a399338d8b5d50c407b9a0e /include/llvm/Analysis/MemoryBuiltins.h | |
parent | f1fb6c836940d1b92c0e3df27f4c9ca6569ff968 (diff) |
remove extractMallocCallFromBitCast, since it was tailor maded for its sole user. Update GlobalOpt accordingly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158952 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/MemoryBuiltins.h')
-rw-r--r-- | include/llvm/Analysis/MemoryBuiltins.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/llvm/Analysis/MemoryBuiltins.h b/include/llvm/Analysis/MemoryBuiltins.h index 3694f8f864..4072878f39 100644 --- a/include/llvm/Analysis/MemoryBuiltins.h +++ b/include/llvm/Analysis/MemoryBuiltins.h @@ -69,13 +69,6 @@ static inline CallInst *extractMallocCall(Value *I) { return const_cast<CallInst*>(extractMallocCall((const Value*)I)); } -/// extractMallocCallFromBitCast - Returns the corresponding CallInst if the -/// instruction is a bitcast of the result of a malloc call. -const CallInst *extractMallocCallFromBitCast(const Value *I); -static inline CallInst *extractMallocCallFromBitCast(Value *I) { - return const_cast<CallInst*>(extractMallocCallFromBitCast((const Value*)I)); -} - /// isArrayMalloc - Returns the corresponding CallInst if the instruction /// is a call to malloc whose array size can be determined and the array size /// is not constant 1. Otherwise, return NULL. |