diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-05-08 01:33:18 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-05-08 01:33:18 +0000 |
commit | a15f7ac7729b74d1d8bef0c009b803a4bbef20d3 (patch) | |
tree | ff2bd23499ad49658b003a4be55e6edda738b6db | |
parent | 6d52ca0d5c1e9c2cda94ea223da7acfe5945c8c2 (diff) |
Revert r71079.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71202 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/AST/ASTContext.h | 2 | ||||
-rw-r--r-- | lib/Analysis/RegionStore.cpp | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/include/clang/AST/ASTContext.h b/include/clang/AST/ASTContext.h index 8199affc83..3afccdb61d 100644 --- a/include/clang/AST/ASTContext.h +++ b/include/clang/AST/ASTContext.h @@ -205,8 +205,6 @@ 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; } diff --git a/lib/Analysis/RegionStore.cpp b/lib/Analysis/RegionStore.cpp index 5f987fdf27..74e2069833 100644 --- a/lib/Analysis/RegionStore.cpp +++ b/lib/Analysis/RegionStore.cpp @@ -297,7 +297,7 @@ private: // Utility methods. BasicValueFactory& getBasicVals() { return StateMgr.getBasicVals(); } ASTContext& getContext() { return StateMgr.getContext(); } - TargetInfo& getTargetInfo() { return getContext().getTargetInfo(); } + SymbolManager& getSymbolManager() { return StateMgr.getSymbolManager(); } const GRState* AddRegionView(const GRState* St, @@ -315,7 +315,7 @@ StoreManager* clang::CreateRegionStoreManager(GRStateManager& StMgr) { // getTypeWidth - compute the width of the type. Should pass in // canonical type. static unsigned getTypeWidth(ASTContext& Ctx, QualType T) { - TargetInfo& Target = Ctx.getTargetInfo(); + TargetInfo& Target = Ctx.Target; QualType CanT = Ctx.getCanonicalType(T); if (CanT->isPointerType()) |