Allocate ASTRecordLayout objects using the allocator associated with ASTContext.
This allows them to be allocated using a BumpPtrAllocated in the common case. llvm-svn: 97978
Showing
- clang/include/clang/AST/RecordLayout.h 8 additions, 31 deletionsclang/include/clang/AST/RecordLayout.h
- clang/lib/AST/ASTContext.cpp 13 additions, 13 deletionsclang/lib/AST/ASTContext.cpp
- clang/lib/AST/CMakeLists.txt 2 additions, 1 deletionclang/lib/AST/CMakeLists.txt
- clang/lib/AST/RecordLayout.cpp 69 additions, 0 deletionsclang/lib/AST/RecordLayout.cpp
- clang/lib/AST/RecordLayoutBuilder.cpp 18 additions, 17 deletionsclang/lib/AST/RecordLayoutBuilder.cpp
Loading
Please register or sign in to comment