Reduce the number of allocations required for AST attributes. In test cases, the...
authorAaron Ballman <aaron@aaronballman.com>
Tue, 16 Aug 2016 14:48:39 +0000 (14:48 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Tue, 16 Aug 2016 14:48:39 +0000 (14:48 +0000)
Patch by Eugene Kosov

llvm-svn: 278812

clang/include/clang/AST/AttrIterator.h

index a0c8030..fb9b049 100644 (file)
@@ -39,8 +39,7 @@ void operator delete[](void *Ptr, const clang::ASTContext &C, size_t);
 namespace clang {
 
 /// AttrVec - A vector of Attr, which is how they are stored on the AST.
-typedef SmallVector<Attr*, 2> AttrVec;
-typedef SmallVector<const Attr*, 2> ConstAttrVec;
+typedef SmallVector<Attr *, 4> AttrVec;
 
 /// specific_attr_iterator - Iterates over a subrange of an AttrVec, only
 /// providing attributes that are of a specific type.