move some typedefs so that we don't polute the llvm namespace. this should appease...
authorNuno Lopes <nunoplopes@sapo.pt>
Thu, 21 Jun 2012 16:58:41 +0000 (16:58 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Thu, 21 Jun 2012 16:58:41 +0000 (16:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158924 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/MemoryBuiltins.h

index ab4a3f3c131ff57393a664db4eca71205963576c..c212bbbba1b317bc9e8f8a70fb8e73ae0707f2e2 100644 (file)
@@ -192,9 +192,6 @@ public:
 };
 
 typedef std::pair<Value*, Value*> SizeOffsetEvalType;
-typedef IRBuilder<true, TargetFolder> BuilderTy;
-typedef DenseMap<const Value*, SizeOffsetEvalType> CacheMapTy;
-typedef SmallPtrSet<const Value*, 8> PtrSetTy;
 
 
 /// \brief Evaluate the size and offset of an object ponted by a Value*.
@@ -202,6 +199,10 @@ typedef SmallPtrSet<const Value*, 8> PtrSetTy;
 class ObjectSizeOffsetEvaluator
   : public InstVisitor<ObjectSizeOffsetEvaluator, SizeOffsetEvalType> {
 
+  typedef IRBuilder<true, TargetFolder> BuilderTy;
+  typedef DenseMap<const Value*, SizeOffsetEvalType> CacheMapTy;
+  typedef SmallPtrSet<const Value*, 8> PtrSetTy;
+
   const TargetData *TD;
   LLVMContext &Context;
   BuilderTy Builder;