diff options
author | Ted Kremenek <kremenek@apple.com> | 2007-10-31 22:44:07 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2007-10-31 22:44:07 +0000 |
commit | fee0452973f28691a61aab0fb074468ce3e34b9b (patch) | |
tree | 39e9022976f493b554eaa3c07fafe689b79657c7 /include/clang | |
parent | 8749be53f53384e7846502791ceda6c657228d07 (diff) |
Implemented more of serialization/deserialization for ASTContext. We now
(hypothetically) read in/write out most of the types. Bugs likely exist.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43584 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang')
-rw-r--r-- | include/clang/AST/ASTContext.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/clang/AST/ASTContext.h b/include/clang/AST/ASTContext.h index 5db8a34408..8e92c7c245 100644 --- a/include/clang/AST/ASTContext.h +++ b/include/clang/AST/ASTContext.h @@ -87,12 +87,15 @@ public: QualType VoidPtrTy; ASTContext(SourceManager &SM, TargetInfo &t, IdentifierTable &idents, - SelectorTable &sels) : + SelectorTable &sels, unsigned size_reserve=0 ) : CFConstantStringTypeDecl(0), SourceMgr(SM), Target(t), Idents(idents), Selectors(sels) { + + if (size_reserve > 0) Types.reserve(size_reserve); InitBuiltinTypes(); BuiltinInfo.InitializeBuiltins(idents, Target); - } + } + ~ASTContext(); void PrintStats() const; |