[cfe-commits] r71202 - in /cfe/trunk: include/clang/AST/ASTContext.h lib/Analysis/RegionStore.cpp
Zhongxing Xu
xuzhongxing at gmail.com
Thu May 7 18:33:20 PDT 2009
Author: zhongxingxu
Date: Thu May 7 20:33:18 2009
New Revision: 71202
URL: http://llvm.org/viewvc/llvm-project?rev=71202&view=rev
Log:
Revert r71079.
Modified:
cfe/trunk/include/clang/AST/ASTContext.h
cfe/trunk/lib/Analysis/RegionStore.cpp
Modified: cfe/trunk/include/clang/AST/ASTContext.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/ASTContext.h?rev=71202&r1=71201&r2=71202&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/ASTContext.h (original)
+++ cfe/trunk/include/clang/AST/ASTContext.h Thu May 7 20:33:18 2009
@@ -205,8 +205,6 @@
/// 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; }
Modified: cfe/trunk/lib/Analysis/RegionStore.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/RegionStore.cpp?rev=71202&r1=71201&r2=71202&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/RegionStore.cpp (original)
+++ cfe/trunk/lib/Analysis/RegionStore.cpp Thu May 7 20:33:18 2009
@@ -297,7 +297,7 @@
// 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 @@
// 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())
More information about the cfe-commits
mailing list