Add getter methods.

llvm-svn: 76871
This commit is contained in:
Zhongxing Xu 2009-07-23 07:37:14 +00:00
parent 3cdf80589f
commit ef5cfd43b3
1 changed files with 3 additions and 0 deletions

View File

@ -56,6 +56,9 @@ public:
const ASTContext &getASTContext() const { return *Ctx.get(); }
ASTContext &getASTContext() { return *Ctx.get(); }
const Diagnostic &getDiagnostic() const { return *Diags.get(); }
Diagnostic &getDiagnostic() { return *Diags.get(); }
/// \brief Create a ASTUnit from a PCH file.
///
/// \param Filename PCH filename