diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-10-16 16:54:18 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-10-16 16:54:18 +0000 |
commit | d3db40151868df39b14d2ef8ffacf19e8c36331f (patch) | |
tree | 578814d5ceb5a81fc11992b8271c3a977757747d /include/clang/Sema | |
parent | 1e6759e9e33dcaa73ce14c8a908ac9f87ac16463 (diff) |
Add --disable-free flag to clang.
- Disables the freeing of the ASTContext and the TranslationUnit
after parsing & sema.
- Primarily for timing the impact on -fsyntax-only timings.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57643 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Sema')
-rw-r--r-- | include/clang/Sema/ParseAST.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/clang/Sema/ParseAST.h b/include/clang/Sema/ParseAST.h index 907372ddef..60249ede8d 100644 --- a/include/clang/Sema/ParseAST.h +++ b/include/clang/Sema/ParseAST.h @@ -21,7 +21,11 @@ namespace clang { /// ParseAST - Parse the entire file specified, notifying the ASTConsumer as /// the file is parsed. This takes ownership of the ASTConsumer and /// ultimately deletes it. - void ParseAST(Preprocessor &pp, ASTConsumer *C, bool PrintStats = false); + /// + /// \param FreeMemory If false, the memory used for AST elements is + /// not released. + void ParseAST(Preprocessor &pp, ASTConsumer *C, + bool PrintStats = false, bool FreeMemory = true); } // end namespace clang |