From f329ee2b4cfdde656d2fe30f2a2789d8a3774203 Mon Sep 17 00:00:00 2001 From: Tuowen Zhao Date: Thu, 6 Oct 2016 16:07:35 -0600 Subject: cleanup --- src/printer/dump.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/printer/dump.cpp') diff --git a/src/printer/dump.cpp b/src/printer/dump.cpp index f3fe2e5..cd4c316 100644 --- a/src/printer/dump.cpp +++ b/src/printer/dump.cpp @@ -57,8 +57,8 @@ void Dump::printS(std::string ident, chillAST_ArraySubscriptExpr *n, std::ostrea else o << "lvalue "; } else o << "rvalue "; - print(ident, n->base, o); - print(ident, n->index, o); + print(ident, n->getBase(), o); + print(ident, n->getIndex(), o); } void Dump::printS(std::string ident, chillAST_BinaryOperator *n, std::ostream &o) { @@ -166,7 +166,7 @@ void Dump::printS(std::string ident, chillAST_Malloc *n, std::ostream &o) { } void Dump::printS(std::string ident, chillAST_MemberExpr *n, std::ostream &o) { - print(ident, n->base, o); + print(ident, n->getBase(), o); if (n->exptype == CHILLAST_MEMBER_EXP_ARROW) o << "-> "; else o << ". "; o << n->member << " "; -- cgit v1.2.3-70-g09d2