summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/StmtXML.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-11-25 00:27:52 +0000
committerDouglas Gregor <dgregor@apple.com>2009-11-25 00:27:52 +0000
commit7bab5ff8e70c2f5076a26bcc6099b81c06a4de9a (patch)
treeb63c8c9608093b38f19e045cbbdfaa29698a044d /clang/lib/Frontend/StmtXML.cpp
parentd6f7850117e25b64b9f79a1b30e30293db3ae95a (diff)
downloadbcm5719-llvm-7bab5ff8e70c2f5076a26bcc6099b81c06a4de9a.tar.gz
bcm5719-llvm-7bab5ff8e70c2f5076a26bcc6099b81c06a4de9a.zip
Eliminate CXXConditionDeclExpr with extreme prejudice.
All statements that involve conditions can now hold on to a separate condition declaration (a VarDecl), and will use a DeclRefExpr referring to that VarDecl for the condition expression. ForStmts now have such a VarDecl (I'd missed those in previous commits). Also, since this change reworks the Action interface for if/while/switch/for, use FullExprArg for the full expressions in those expressions, to ensure that we're emitting Note that we are (still) not generating the right cleanups for condition variables in for statements. That will be a follow-on commit. llvm-svn: 89817
Diffstat (limited to 'clang/lib/Frontend/StmtXML.cpp')
-rw-r--r--clang/lib/Frontend/StmtXML.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Frontend/StmtXML.cpp b/clang/lib/Frontend/StmtXML.cpp
index 4a3c0bf1c60..b98417fc319 100644
--- a/clang/lib/Frontend/StmtXML.cpp
+++ b/clang/lib/Frontend/StmtXML.cpp
@@ -61,8 +61,6 @@ namespace {
Doc.PrintDecl(*DI);
}
} else {
- if (CXXConditionDeclExpr* CCDE = dyn_cast<CXXConditionDeclExpr>(S))
- Doc.PrintDecl(CCDE->getVarDecl());
for (Stmt::child_iterator i = S->child_begin(), e = S->child_end();
i != e; ++i)
DumpSubTree(*i);
OpenPOWER on IntegriCloud