[cfe-commits] r41658 - /cfe/trunk/AST/CFG.cpp
Ted Kremenek
kremenek at apple.com
Fri Aug 31 15:29:13 PDT 2007
Author: kremenek
Date: Fri Aug 31 17:29:13 2007
New Revision: 41658
URL: http://llvm.org/viewvc/llvm-project?rev=41658&view=rev
Log:
Added better pretty printing in CFGs for __builtin_choose_expr
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=41658&r1=41657&r2=41658&view=diff
==============================================================================
--- cfe/trunk/AST/CFG.cpp (original)
+++ cfe/trunk/AST/CFG.cpp Fri Aug 31 17:29:13 2007
@@ -1014,6 +1014,12 @@
OS << " ? ... : ...\n";
}
+ void VisitChooseExpr(ChooseExpr* C) {
+ OS << "__builtin_choose_expr( ";
+ C->getCond()->printPretty(OS,Helper);
+ OS << " )\n";
+ }
+
void VisitIndirectGotoStmt(IndirectGotoStmt* I) {
OS << "goto *";
I->getTarget()->printPretty(OS,Helper);
More information about the cfe-commits
mailing list