]> granicus.if.org Git - clang/commitdiff
Revert r71079.
authorZhongxing Xu <xuzhongxing@gmail.com>
Fri, 8 May 2009 01:33:18 +0000 (01:33 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Fri, 8 May 2009 01:33:18 +0000 (01:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71202 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/ASTContext.h
lib/Analysis/RegionStore.cpp

index 8199affc83ba2eb55f6db31d0a04eaf7cb0e4064..3afccdb61d08a2a4705c0ed966bc8747464c38fc 100644 (file)
@@ -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; }
   
index 5f987fdf27154fe80d3c940dee5c8efe960864bf..74e20698331ece614aa1b4f7c509523a061075cc 100644 (file)
@@ -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())