From 87e7538503756d036fec4c2b18a9c19d126626a4 Mon Sep 17 00:00:00 2001 From: Tuowen Zhao Date: Fri, 30 Sep 2016 13:25:57 -0600 Subject: Binary Ternary --- src/printer/dump.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/printer/dump.cpp') diff --git a/src/printer/dump.cpp b/src/printer/dump.cpp index c7abc63..066a2fe 100644 --- a/src/printer/dump.cpp +++ b/src/printer/dump.cpp @@ -63,9 +63,9 @@ void Dump::printS(std::string ident, chillAST_ArraySubscriptExpr *n, std::ostrea void Dump::printS(std::string ident, chillAST_BinaryOperator *n, std::ostream &o) { o << n->op << " "; - if (n->lhs) print(ident, n->lhs, o); + if (n->getLHS()) print(ident, n->getLHS(), o); else o << "(NULL) "; - if (n->rhs) print(ident, n->rhs, o); + if (n->getRHS()) print(ident, n->getRHS(), o); else o << "(NULL) "; } @@ -209,9 +209,9 @@ void Dump::printS(std::string ident, chillAST_TypedefDecl *n, std::ostream &o) { void Dump::printS(std::string ident, chillAST_TernaryOperator *n, std::ostream &o) { o << n->op << " "; - print(ident, n->condition, o); - print(ident, n->lhs, o); - print(ident, n->rhs, o); + print(ident, n->getCond(), o); + print(ident, n->getLHS(), o); + print(ident, n->getRHS(), o); } void Dump::printS(std::string ident, chillAST_UnaryOperator *n, std::ostream &o) { -- cgit v1.2.3-70-g09d2