aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2009-05-06 11:48:29 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2009-05-06 11:48:29 +0000
commit33c37b9b87453c835cd0e32a4a65db329da20356 (patch)
tree4feac84fd554ce33d8f5efe4fe28d9452b254d23
parent20794948a00ca03dee272cb131905a8f07c3cc02 (diff)
add getTargetInfo() method to ASTContext.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71079 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/AST/ASTContext.h2
1 files changed, 2 insertions, 0 deletions
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<Type*>& getTypes() const { return Types; }