diff options
author | Tuowen Zhao <ztuowen@gmail.com> | 2016-10-01 11:29:57 -0600 |
---|---|---|
committer | Tuowen Zhao <ztuowen@gmail.com> | 2016-10-01 11:29:57 -0600 |
commit | f7c9c6e95f5a7333db5cef9d92c6c3438adbd6ee (patch) | |
tree | fb1f71863457aae8be68724d18d752437d6c19d1 /src/printer/dump.cpp | |
parent | 2028f3ddc680b3af6476ace8840d6bcc85b88d73 (diff) | |
download | chill-f7c9c6e95f5a7333db5cef9d92c6c3438adbd6ee.tar.gz chill-f7c9c6e95f5a7333db5cef9d92c6c3438adbd6ee.tar.bz2 chill-f7c9c6e95f5a7333db5cef9d92c6c3438adbd6ee.zip |
fixes
Diffstat (limited to 'src/printer/dump.cpp')
-rw-r--r-- | src/printer/dump.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/printer/dump.cpp b/src/printer/dump.cpp index 0e66f29..f3fe2e5 100644 --- a/src/printer/dump.cpp +++ b/src/printer/dump.cpp @@ -70,8 +70,8 @@ void Dump::printS(std::string ident, chillAST_BinaryOperator *n, std::ostream &o } void Dump::printS(std::string ident, chillAST_CallExpr *n, std::ostream &o) { - if (n->callee) - print(ident, n->callee, o); + if (n->getCallee()) + print(ident, n->getCallee(), o); } void Dump::printS(std::string ident, chillAST_CompoundStmt *n, std::ostream &o) { @@ -88,7 +88,7 @@ void Dump::printS(std::string ident, chillAST_CStyleCastExpr *n, std::ostream &o } void Dump::printS(std::string ident, chillAST_CudaFree *n, std::ostream &o) { - o << n->variable->varname << " "; + print(ident, n->getPointer(), o); } void Dump::printS(std::string ident, chillAST_CudaKernelCall *n, std::ostream &o) { @@ -102,9 +102,9 @@ void Dump::printS(std::string ident, chillAST_CudaMalloc *n, std::ostream &o) { void Dump::printS(std::string ident, chillAST_CudaMemcpy *n, std::ostream &o) { o << n->cudaMemcpyKind << " "; - print(ident, n->dest, o); - print(ident, n->src, o); - print(ident, n->size, o); + print(ident, n->getDest(), o); + print(ident, n->getSrc(), o); + print(ident, n->getSize(), o); } void Dump::printS(std::string ident, chillAST_CudaSyncthreads *n, std::ostream &o) {} |