Revert r71079.

llvm-svn: 71202
This commit is contained in:
Zhongxing Xu 2009-05-08 01:33:18 +00:00
parent 766004f179
commit 1ba79dfeea
2 changed files with 2 additions and 4 deletions

View 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; }

View 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())