Ignore:
Timestamp:
May 20, 2015, 11:48:43 AM (4 years ago)
Author:
cameron
Message:

Use llvm:raw_ostream in Pablo printer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/pablo_compiler.cpp

    r4566 r4567  
    721721    }
    722722    else {
    723         PabloPrinter::print(stmt, std::cerr);
     723        llvm::raw_os_ostream cerr(std::cerr);
     724        PabloPrinter::print(stmt, cerr);
    724725        throw std::runtime_error("Unrecognized Pablo Statement! can't compile.");
    725726    }
     
    738739    auto f = mMarkerMap.find(expr);
    739740    if (f == mMarkerMap.end()) {
    740         std::stringstream str;
     741        std::string o;
     742        llvm::raw_string_ostream str(o);
    741743        str << "\"";
    742744        PabloPrinter::print(expr, str);
Note: See TracChangeset for help on using the changeset viewer.