From 2a5618583e1fdc8cde0308d3e5b1873bc94c5fb1 Mon Sep 17 00:00:00 2001 From: Tuowen Zhao Date: Sun, 25 Sep 2016 11:06:42 -0600 Subject: staging --- include/chillAST/chillAST_node.hh | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'include/chillAST/chillAST_node.hh') diff --git a/include/chillAST/chillAST_node.hh b/include/chillAST/chillAST_node.hh index 80f1be4..bed2f22 100644 --- a/include/chillAST/chillAST_node.hh +++ b/include/chillAST/chillAST_node.hh @@ -25,7 +25,6 @@ public: char *filename; //! for compiler internals, formerly a comment char *metacomment; - std::vector preprocessinginfo; //! for manufactured scalars static int chill_scalar_counter; @@ -418,7 +417,7 @@ public: fprintf(fp, "(%s) forgot to implement printName()\n", getTypeString()); };// print CODE - //! The AST's print version + //! The AST's print version, for reason unknown and incorrect virtual char *stringRep(int indent = 0) { fflush(stdout); // TODO chillindent(indent, fp); @@ -426,9 +425,6 @@ public: exit(-1); } - - virtual void printonly(int indent = 0, FILE *fp = stderr) { print(indent, fp); }; - virtual void getTopLevelLoops(std::vector &loops) { int n = children.size(); for (int i = 0; i < n; i++) { @@ -528,14 +524,11 @@ public: fprintf(stderr, "\n\n"); } - void printPreprocBEFORE(int indent, FILE *fp); - - void printPreprocAFTER(int indent, FILE *fp); - virtual chillAST_SymbolTable* getParameters() {return parameters;} virtual chillAST_VarDecl* getParameter(const char * name); virtual void addParameter(chillAST_VarDecl* name); + //! Emulation of the old dump function but using printer instead of hardcoded heuritics void dump(int indent=0,FILE *fp = stderr); }; -- cgit v1.2.3-70-g09d2