aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Sema/ParseAST.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-28 01:37:17 +0000
committerChris Lattner <sabre@nondot.org>2009-03-28 01:37:17 +0000
commit9ecd26ad19875e410e76476b36f77c47069ba04c (patch)
tree80a3b71f18c04fa90f8d0636a4c1dfe816212a16 /include/clang/Sema/ParseAST.h
parentab3a852ae713189444dcbf75e70accf1e8c2b7f2 (diff)
simplify ParseAST by sucking -disable-free handling logic up into
clang.cpp git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67890 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Sema/ParseAST.h')
-rw-r--r--include/clang/Sema/ParseAST.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/include/clang/Sema/ParseAST.h b/include/clang/Sema/ParseAST.h
index b18e5a6729..b41c2da1d4 100644
--- a/include/clang/Sema/ParseAST.h
+++ b/include/clang/Sema/ParseAST.h
@@ -20,14 +20,10 @@ namespace clang {
class TranslationUnit;
/// ParseAST - Parse the entire file specified, notifying the ASTConsumer as
- /// the file is parsed.
+ /// the file is parsed. This inserts the parsed decls into TU.
///
- /// \param TU If 0, then memory used for AST elements will be allocated only
- /// for the duration of the ParseAST() call. In this case, the client should
- /// not access any AST elements after ParseAST() returns.
void ParseAST(Preprocessor &pp, ASTConsumer *C,
- TranslationUnit *TU = 0,
- bool PrintStats = false);
+ TranslationUnit &TU, bool PrintStats = false);
} // end namespace clang