Switch attributes to be allocated from the declcontext bump pointer just like
decls. This reduces the number of calls to malloc on cocoa.h with pth and -disable-free from 15958 to 12444 times (down ~3500). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66023 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/AST/Attr.h 12 additions, 5 deletionsinclude/clang/AST/Attr.h
- lib/AST/Decl.cpp 11 additions, 0 deletionslib/AST/Decl.cpp
- lib/Sema/IdentifierResolver.cpp 4 additions, 6 deletionslib/Sema/IdentifierResolver.cpp
- lib/Sema/SemaDecl.cpp 11 additions, 10 deletionslib/Sema/SemaDecl.cpp
- lib/Sema/SemaDeclAttr.cpp 39 additions, 39 deletionslib/Sema/SemaDeclAttr.cpp
Loading
Please register or sign in to comment