[cfe-commits] r41540 - /cfe/trunk/AST/CFG.cpp
Ted Kremenek
kremenek at apple.com
Tue Aug 28 09:18:58 PDT 2007
Author: kremenek
Date: Tue Aug 28 11:18:58 2007
New Revision: 41540
URL: http://llvm.org/viewvc/llvm-project?rev=41540&view=rev
Log:
Removed special-casing in CFG construction for ParenExprs.
Modified:
cfe/trunk/AST/CFG.cpp
Modified: cfe/trunk/AST/CFG.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/AST/CFG.cpp?rev=41540&r1=41539&r2=41540&view=diff
==============================================================================
--- cfe/trunk/AST/CFG.cpp (original)
+++ cfe/trunk/AST/CFG.cpp Tue Aug 28 11:18:58 2007
@@ -83,7 +83,6 @@
CFGBlock* VisitStmt(Stmt* Statement);
CFGBlock* VisitNullStmt(NullStmt* Statement);
- CFGBlock* VisitParenExpr(ParenExpr* Statement);
CFGBlock* VisitCompoundStmt(CompoundStmt* C);
CFGBlock* VisitIfStmt(IfStmt* I);
CFGBlock* VisitReturnStmt(ReturnStmt* R);
@@ -210,10 +209,7 @@
Block->setTerminator(C);
return addStmt(C->getCond());
}
-
- case Stmt::ParenExprClass:
- return WalkAST(cast<ParenExpr>(S)->getSubExpr(),AlwaysAddStmt);
-
+
case Stmt::BinaryOperatorClass: {
BinaryOperator* B = cast<BinaryOperator>(S);
@@ -277,11 +273,6 @@
return Block;
}
-CFGBlock* CFGBuilder::VisitParenExpr(ParenExpr* Statement) {
- return Visit(Statement->getSubExpr());
-}
-
-
CFGBlock* CFGBuilder::VisitCompoundStmt(CompoundStmt* C) {
// The value returned from this function is the last created CFGBlock
// that represents the "entry" point for the translated AST node.
More information about the cfe-commits
mailing list