From b7a50e256d0ac6ec120050173b37f34d434ef325 Mon Sep 17 00:00:00 2001 From: Tuowen Zhao Date: Wed, 5 Oct 2016 22:47:11 -0600 Subject: build for ubuntu --- src/ir_clang.cc | 4 +++- src/transformations/loop.cc | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src') 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 &active) { uninterpreted_symbols[*i].insert( std::pair >( - v->get_global_var()->base_name(), + (const char*)(v->get_global_var()->base_name()), reprs)); uninterpreted_symbols_stringrepr[*i].insert( std::pair >( - v->get_global_var()->base_name(), + (const char*)(v->get_global_var()->base_name()), reprs2)); } } -- cgit v1.2.3-70-g09d2