Rename UnaryTypeTraitExpr::Evaluate to EvaluateTrait to not collide

with Expr::Evaluate().

llvm-svn: 64850
This commit is contained in:
Daniel Dunbar 2009-02-17 23:20:26 +00:00
parent 976fdefe2f
commit 491812cd76
4 changed files with 4 additions and 4 deletions

View File

@ -806,7 +806,7 @@ public:
QualType getQueriedType() const { return QueriedType; }
bool Evaluate() const;
bool EvaluateTrait() const;
static bool classof(const Stmt *T) {
return T->getStmtClass() == UnaryTypeTraitExprClass;

View File

@ -1230,7 +1230,7 @@ bool Expr::isIntegerConstantExpr(llvm::APSInt &Result, ASTContext &Ctx,
->isIntegerConstantExpr(Result, Ctx, Loc, isEvaluated);
case UnaryTypeTraitExprClass:
Result = cast<UnaryTypeTraitExpr>(this)->Evaluate();
Result = cast<UnaryTypeTraitExpr>(this)->EvaluateTrait();
return true;
}

View File

@ -138,7 +138,7 @@ Stmt::child_iterator UnaryTypeTraitExpr::child_end() {
return child_iterator();
}
bool UnaryTypeTraitExpr::Evaluate() const {
bool UnaryTypeTraitExpr::EvaluateTrait() const {
switch(UTT) {
default: assert(false && "Unknown type trait or not implemented");
case UTT_IsPOD: return QueriedType->isPODType();

View File

@ -552,7 +552,7 @@ public:
bool VisitUnaryTypeTraitExpr(const UnaryTypeTraitExpr *E) {
Result.zextOrTrunc(getIntTypeSizeInBits(E->getType()));
Result = E->Evaluate();
Result = E->EvaluateTrait();
return true;
}