diff options
author | Nuno Lopes <nunoplopes@sapo.pt> | 2012-07-25 18:49:28 +0000 |
---|---|---|
committer | Nuno Lopes <nunoplopes@sapo.pt> | 2012-07-25 18:49:28 +0000 |
commit | f0626f2205bc4000be28ca8f2ad7afbde538f3dd (patch) | |
tree | 118f479510a3fae5376304a12a0aad687a4f0788 /llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp | |
parent | 7a42ff546a2c1b52d927ca50fe4f1b06445ef321 (diff) | |
download | llvm-f0626f2205bc4000be28ca8f2ad7afbde538f3dd.zip llvm-f0626f2205bc4000be28ca8f2ad7afbde538f3dd.tar.gz llvm-f0626f2205bc4000be28ca8f2ad7afbde538f3dd.tar.bz2 |
revert r160742: it's breaking CMake build
original commit msg:
MemoryBuiltins: add support to determine the size of strdup'ed non-constant strings
llvm-svn: 160751
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp b/llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp index b209fff..09e0f14 100644 --- a/llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp +++ b/llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp @@ -24,7 +24,6 @@ #include "llvm/Support/TargetFolder.h" #include "llvm/Support/raw_ostream.h" #include "llvm/Target/TargetData.h" -#include "llvm/Target/TargetLibraryInfo.h" #include "llvm/Transforms/Instrumentation.h" using namespace llvm; @@ -49,7 +48,6 @@ namespace { virtual void getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequired<TargetData>(); - AU.addRequired<TargetLibraryInfo>(); } private: @@ -168,12 +166,11 @@ bool BoundsChecking::instrument(Value *Ptr, Value *InstVal) { bool BoundsChecking::runOnFunction(Function &F) { TD = &getAnalysis<TargetData>(); - const TargetLibraryInfo *TLI = &getAnalysis<TargetLibraryInfo>(); TrapBB = 0; BuilderTy TheBuilder(F.getContext(), TargetFolder(TD)); Builder = &TheBuilder; - ObjectSizeOffsetEvaluator TheObjSizeEval(TD, TLI, F.getContext()); + ObjectSizeOffsetEvaluator TheObjSizeEval(TD, F.getContext()); ObjSizeEval = &TheObjSizeEval; // check HANDLE_MEMORY_INST in include/llvm/Instruction.def for memory |