Added better pretty printing in CFGs for __builtin_choose_expr
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41658 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/AST/CFG.cpp b/AST/CFG.cpp
index da06ebd..4828db1 100644
--- a/AST/CFG.cpp
+++ b/AST/CFG.cpp
@@ -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);