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/compiler.cpp

    r4526 r4567  
    137137    if (PrintCompiledCCcode) {
    138138      //Print to the terminal the AST that was generated by the character class compiler.
    139       std::cerr << "CC AST:" << std::endl;
    140       PabloPrinter::print(main.statements(), std::cerr);
     139      llvm::raw_os_ostream cerr(std::cerr);
     140      cerr << "CC AST:" << "\n";
     141      PabloPrinter::print(main.statements(), cerr);
    141142    }
    142143   
     
    146147    if (PrintCompiledREcode) {
    147148      //Print to the terminal the AST that was generated by the pararallel bit-stream compiler.
    148       std::cerr << "Initial Pablo AST:\n";
    149       PabloPrinter::print(main.statements(), std::cerr);
     149      llvm::raw_os_ostream cerr(std::cerr);
     150      cerr << "Initial Pablo AST:\n";
     151      PabloPrinter::print(main.statements(), cerr);
    150152    }
    151153
     
    159161    if (PrintOptimizedREcode) {
    160162      //Print to the terminal the AST that was generated by the pararallel bit-stream compiler.
    161       std::cerr << "Final Pablo AST:\n";
    162       PabloPrinter::print(main.statements(), std::cerr);
     163      llvm::raw_os_ostream cerr(std::cerr);
     164      cerr << "Final Pablo AST:\n";
     165      PabloPrinter::print(main.statements(), cerr);
    163166    }
    164167
Note: See TracChangeset for help on using the changeset viewer.