summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/include/clang/AST/ASTContext.h2
-rw-r--r--clang/lib/Analysis/RegionStore.cpp4
2 files changed, 2 insertions, 4 deletions
diff --git a/clang/include/clang/AST/ASTContext.h b/clang/include/clang/AST/ASTContext.h
index 8199affc83b..3afccdb61d0 100644
--- a/clang/include/clang/AST/ASTContext.h
+++ b/clang/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/clang/lib/Analysis/RegionStore.cpp b/clang/lib/Analysis/RegionStore.cpp
index 5f987fdf271..74e20698331 100644
--- a/clang/lib/Analysis/RegionStore.cpp
+++ b/clang/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())
OpenPOWER on IntegriCloud