diff options
author | Nuno Lopes <nunoplopes@sapo.pt> | 2012-07-25 17:29:22 +0000 |
---|---|---|
committer | Nuno Lopes <nunoplopes@sapo.pt> | 2012-07-25 17:29:22 +0000 |
commit | e3094283e38d9e6f6a4a7a14a3a5d0f2af67d5d5 (patch) | |
tree | 86fed444bf0263f4cfc2a78f815c9b6c59e942f7 /include/llvm | |
parent | a536835230afcd334068bc6f5781a244938feaf9 (diff) | |
download | external_llvm-e3094283e38d9e6f6a4a7a14a3a5d0f2af67d5d5.zip external_llvm-e3094283e38d9e6f6a4a7a14a3a5d0f2af67d5d5.tar.gz external_llvm-e3094283e38d9e6f6a4a7a14a3a5d0f2af67d5d5.tar.bz2 |
MemoryBuiltins: add support to determine the size of strdup'ed non-constant strings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160742 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Analysis/MemoryBuiltins.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Analysis/MemoryBuiltins.h b/include/llvm/Analysis/MemoryBuiltins.h index e674e74..7684082 100644 --- a/include/llvm/Analysis/MemoryBuiltins.h +++ b/include/llvm/Analysis/MemoryBuiltins.h @@ -201,6 +201,7 @@ class ObjectSizeOffsetEvaluator typedef SmallPtrSet<const Value*, 8> PtrSetTy; const TargetData *TD; + const TargetLibraryInfo *TLI; LLVMContext &Context; BuilderTy Builder; ObjectSizeOffsetVisitor Visitor; @@ -215,7 +216,8 @@ class ObjectSizeOffsetEvaluator SizeOffsetEvalType compute_(Value *V); public: - ObjectSizeOffsetEvaluator(const TargetData *TD, LLVMContext &Context); + ObjectSizeOffsetEvaluator(const TargetData *TD, const TargetLibraryInfo *TLI, + LLVMContext &Context); SizeOffsetEvalType compute(Value *V); bool knownSize(SizeOffsetEvalType SizeOffset) { |