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/pe_string.h

    r4512 r4567  
    88#include <string>
    99#include <ostream>
     10#include <llvm/Support/raw_os_ostream.h>
    1011
    1112namespace pablo {
     
    7172}
    7273
     74inline llvm::raw_ostream & operator <<(llvm::raw_ostream & stream, const String & string) {
     75    stream << string.value().data();
     76    return stream;
     77}
     78
     79inline llvm::raw_ostream & operator <<(llvm::raw_ostream & stream, const String * string) {
     80    stream << string->value().data();
     81    return stream;
     82}
     83
    7384}
    7485
Note: See TracChangeset for help on using the changeset viewer.