diff options
author | Tuowen Zhao <ztuowen@gmail.com> | 2016-09-22 15:12:54 -0600 |
---|---|---|
committer | Tuowen Zhao <ztuowen@gmail.com> | 2016-09-22 15:12:54 -0600 |
commit | 1929ac1a60615ee86779790c46e04e53de75462f (patch) | |
tree | 35566b4f04184a9aed98fdc9dda74507075a7890 /include/ir_clang.hh | |
parent | f27e01a039195c379fd6716c4870858789941365 (diff) | |
download | chill-1929ac1a60615ee86779790c46e04e53de75462f.tar.gz chill-1929ac1a60615ee86779790c46e04e53de75462f.tar.bz2 chill-1929ac1a60615ee86779790c46e04e53de75462f.zip |
add CHILL_DEBUG_PRINT & CHILL_DEBUG_BEGIN & CHILL_DEBUG_END
Diffstat (limited to 'include/ir_clang.hh')
-rwxr-xr-x | include/ir_clang.hh | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/include/ir_clang.hh b/include/ir_clang.hh index b283359..e637016 100755 --- a/include/ir_clang.hh +++ b/include/ir_clang.hh @@ -3,7 +3,6 @@ #include <omega.h> #include "ir_code.hh" -//#include <AstInterface_CLANG.h> #include "chill_error.hh" #define __STDC_CONSTANT_MACROS @@ -29,7 +28,7 @@ #include "clang/Frontend/TextDiagnosticPrinter.h" #include "clang/Basic/DiagnosticOptions.h" -#include "chill_ast.hh" +#include "chillAST.h" extern std::vector<chillAST_VarDecl *> VariableDeclarations; // a global. TODO @@ -282,14 +281,6 @@ public: std::vector<chillAST_node *>statements; chillAST_node *chillAST; // how about for now we say if there are statements, which is presumably the top level of statements from ... somewhere, otherwise the code is in chillAST - //IR_chillBlock(const IR_Code *ir, const StmtList& bDecl) : bDecl_(bDecl), cs_(NULL) { - // fprintf(stderr, "MISTAKE IR_chillBlock bdecl\n"); exit(-1); - // ir_ = ir; - //} - //IR_chillBlock(const IR_Code *ir, clang::CompoundStmt *cs) : cs_(cs) { - // fprintf(stderr, "MISTAKE IR_chillBlock cs\n"); exit(-1); - // ir_ = ir; - //} IR_chillBlock( const IR_chillBlock *CB ) { // clone existing IR_chillBlock ir_ = CB->ir_; for (int i=0; i<CB->statements.size(); i++) statements.push_back( CB->statements[i] ); |