projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8de34a9
)
Reduce the number of allocations required for AST attributes. In test cases, the...
author
Aaron Ballman
<aaron@aaronballman.com>
Tue, 16 Aug 2016 14:48:39 +0000
(14:48 +0000)
committer
Aaron 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
patch
|
blob
|
history
diff --git
a/clang/include/clang/AST/AttrIterator.h
b/clang/include/clang/AST/AttrIterator.h
index a0c803096af86fa9bf25c21796d4eecfedf33292..fb9b049e5d6b12b4ec8264bd45a4872432a1921d 100644
(file)
--- a/
clang/include/clang/AST/AttrIterator.h
+++ b/
clang/include/clang/AST/AttrIterator.h
@@
-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.