diff options
Diffstat (limited to 'src')
| -rwxr-xr-x | src/ir_clang.cc | 4 | ||||
| -rw-r--r-- | src/transformations/loop.cc | 4 | 
2 files changed, 5 insertions, 3 deletions
| diff --git a/src/ir_clang.cc b/src/ir_clang.cc index d30823a..2346673 100755 --- a/src/ir_clang.cc +++ b/src/ir_clang.cc @@ -1728,7 +1728,9 @@ IR_clangCode::~IR_clangCode() {    // TODO should output the entire file, not just the function we're working on    chillAST_SourceFile *src = chillfunc->getSourceFile();    if (src) { -    src->dump(); +    CHILL_DEBUG_BEGIN +      src->dump(); +    CHILL_DEBUG_END      if (src->isSourceFile()) src->printToFile();    }  } diff --git a/src/transformations/loop.cc b/src/transformations/loop.cc index 3e040fd..5b1b80b 100644 --- a/src/transformations/loop.cc +++ b/src/transformations/loop.cc @@ -2364,12 +2364,12 @@ void Loop::apply_xform(std::set<int> &active) {                uninterpreted_symbols[*i].insert(                    std::pair<std::string,                        std::vector<omega::CG_outputRepr *> >( -                      v->get_global_var()->base_name(), +                      (const char*)(v->get_global_var()->base_name()),                        reprs));                uninterpreted_symbols_stringrepr[*i].insert(                    std::pair<std::string,                        std::vector<omega::CG_outputRepr *> >( -                      v->get_global_var()->base_name(), +                      (const char*)(v->get_global_var()->base_name()),                        reprs2));              }            } | 
