From 2f96d12dd05213276875d56fec361ff99ec9bd76 Mon Sep 17 00:00:00 2001 From: Tuowen Zhao Date: Fri, 23 Sep 2016 16:30:09 -0600 Subject: staging --- lib/chillcg/include/code_gen/CG_chillRepr.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'lib/chillcg/include/code_gen/CG_chillRepr.h') diff --git a/lib/chillcg/include/code_gen/CG_chillRepr.h b/lib/chillcg/include/code_gen/CG_chillRepr.h index 4a0510f..bcc267f 100755 --- a/lib/chillcg/include/code_gen/CG_chillRepr.h +++ b/lib/chillcg/include/code_gen/CG_chillRepr.h @@ -26,7 +26,7 @@ namespace omega { char *type() const { return strdup("chill"); }; // - std::vector chillnodes; // TODO make private + std::vector chillnodes; // TODO make private void printChillNodes() const { for (int i = 0; i < chillnodes.size(); i++) { chillnodes[i]->print(); @@ -35,15 +35,15 @@ namespace omega { fflush(stdout); }; - CG_chillRepr(std::vector cnodes) { + CG_chillRepr(std::vector cnodes) { chillnodes = cnodes; } - CG_chillRepr(chillAST_node *chillast) { + CG_chillRepr(chillAST_Node *chillast) { stmtclassname = strdup(chillast->getTypeString()); //fprintf(stderr, "made new chillRepr of class %s\n", stmtclassname); - if (chillast->asttype == CHILLAST_NODETYPE_COMPOUNDSTMT) { - std::vector children = chillast->getChildren(); + if (chillast->getType() == CHILLAST_NODE_COMPOUNDSTMT) { + std::vector children = chillast->getChildren(); int numchildren = children.size(); for (int i = 0; i < numchildren; i++) { chillnodes.push_back(children[i]); @@ -54,11 +54,11 @@ namespace omega { } } - void addStatement(chillAST_node *s) { chillnodes.push_back(s); }; + void addStatement(chillAST_Node *s) { chillnodes.push_back(s); }; - std::vector getChillCode() const { return chillnodes; }; + std::vector getChillCode() const { return chillnodes; }; - chillAST_node *GetCode(); + chillAST_Node *GetCode(); ~CG_chillRepr(); -- cgit v1.2.3-70-g09d2