diff options
author | Tuowen Zhao <ztuowen@gmail.com> | 2016-10-11 17:49:01 -0600 |
---|---|---|
committer | Tuowen Zhao <ztuowen@gmail.com> | 2016-10-11 17:49:01 -0600 |
commit | 6e0af6ef491616b430a419b08ae3f2b6137a8881 (patch) | |
tree | 35b23dd6fbbd82d6dda9151efc6aba37cbbf196a /lib/codegen/src | |
parent | a78fdbc93fd8919aacf375cc4d40fdd46a9722a0 (diff) | |
download | chill-6e0af6ef491616b430a419b08ae3f2b6137a8881.tar.gz chill-6e0af6ef491616b430a419b08ae3f2b6137a8881.tar.bz2 chill-6e0af6ef491616b430a419b08ae3f2b6137a8881.zip |
fixes
Diffstat (limited to 'lib/codegen/src')
-rwxr-xr-x | lib/codegen/src/CG_stringBuilder.cc | 9 | ||||
-rwxr-xr-x | lib/codegen/src/CG_utils.cc | 4 |
2 files changed, 2 insertions, 11 deletions
diff --git a/lib/codegen/src/CG_stringBuilder.cc b/lib/codegen/src/CG_stringBuilder.cc index 7a19f66..884e52d 100755 --- a/lib/codegen/src/CG_stringBuilder.cc +++ b/lib/codegen/src/CG_stringBuilder.cc @@ -183,22 +183,13 @@ namespace omega { CG_stringRepr *CG_stringBuilder::CreateInvoke(const std::string &funcName, std::vector<CG_outputRepr *> &list) const { - fprintf(stderr, "CG_stringBuilder::CreateInvoke( %s, ..., is_array ", funcName.c_str()); - fprintf(stderr, " false )\n"); - - std::string listStr = ""; - fprintf(stderr, "list has %d elements\n", list.size()); - for (int i = 0; i < list.size(); i++) { - fprintf(stderr, "accessing list[%d]\n", i); listStr += GetString(list[i]); if ( i < list.size()-1) listStr += ","; } - - fprintf(stderr, "returning %s\n", (funcName + "(" + listStr + ")").c_str()); return new CG_stringRepr(funcName + "(" + listStr + ")"); } diff --git a/lib/codegen/src/CG_utils.cc b/lib/codegen/src/CG_utils.cc index 839343f..87b170c 100755 --- a/lib/codegen/src/CG_utils.cc +++ b/lib/codegen/src/CG_utils.cc @@ -1829,7 +1829,7 @@ namespace omega { CG_outputRepr *lbRepr = NULL; if (lbList.size() > 1) { - fprintf(stderr, "CG_utils.cc output_loop() createInvoke( max )\n"); + CG_DEBUG_PRINT("CG_utils.cc output_loop() createInvoke( max )\n"); lbRepr = ocg->CreateInvoke("max", lbList); } else { // (lbList.size() == 1) @@ -1838,7 +1838,7 @@ namespace omega { CG_outputRepr *ubRepr = NULL; if (ubList.size() > 1) { - fprintf(stderr, "CG_utils.cc output_loop() createInvoke( min )\n"); + CG_DEBUG_PRINT("CG_utils.cc output_loop() createInvoke( min )\n"); ubRepr = ocg->CreateInvoke("min", ubList); } else { // (ubList.size() == 1) |