]> granicus.if.org Git - clang/commitdiff
add getTargetInfo() method to ASTContext.
authorZhongxing Xu <xuzhongxing@gmail.com>
Wed, 6 May 2009 11:48:29 +0000 (11:48 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Wed, 6 May 2009 11:48:29 +0000 (11:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71079 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/ASTContext.h

index 4c80baa2c8f820abe1b8f5714f8a8003a61d12d0..4749044babc82a8c4613178c5b5d7dd42fd78efa 100644 (file)
@@ -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<Type*>& getTypes() const { return Types; }