]> granicus.if.org Git - clang/commit
Add 'UseBumpPtrAllocator' flag to ASTUnit::LoadFromPCHFile() to cause the created...
authorTed Kremenek <kremenek@apple.com>
Sat, 17 Oct 2009 00:34:24 +0000 (00:34 +0000)
committerTed Kremenek <kremenek@apple.com>
Sat, 17 Oct 2009 00:34:24 +0000 (00:34 +0000)
commit5cf48766d626ff6b223acc9d4b7e415ca8480836
treec8dae4f26d5497c34a098a83f3c3867a4ef12725
parent61d60ee6aa0a5ded0ddcf48679673b37506a1895
Add 'UseBumpPtrAllocator' flag to ASTUnit::LoadFromPCHFile() to cause the created ASTContext to use
its own BumpPtrAllocator to allocate ASTs.

Change clang_createTranslationUnit (CIndex) to pass 'UseBumpPtrAllocator = true' to
ASTUnit::LoadFromPCHFile().

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84296 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Frontend/ASTUnit.h
lib/Frontend/ASTUnit.cpp
tools/CIndex/CIndex.cpp