From: Zhongxing Xu Date: Wed, 6 May 2009 11:48:29 +0000 (+0000) Subject: add getTargetInfo() method to ASTContext. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=33c37b9b87453c835cd0e32a4a65db329da20356;p=clang add getTargetInfo() method to ASTContext. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71079 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/ASTContext.h b/include/clang/AST/ASTContext.h index 4c80baa2c8..4749044bab 100644 --- a/include/clang/AST/ASTContext.h +++ b/include/clang/AST/ASTContext.h @@ -205,6 +205,8 @@ public: /// with this AST context, if any. ExternalASTSource *getExternalSource() const { return ExternalSource.get(); } + TargetInfo& getTargetInfo() const { return Target; } + void PrintStats() const; const std::vector& getTypes() const { return Types; }