[LLVMdev] Converting raw_ostream to std::ostream

Criswell, John T criswell at ad.uiuc.edu
Sat Nov 6 13:16:03 PDT 2010


Dear All,

I am currently writing an analysis pass that uses a third-party library.  I want to write a print() method for my pass  (which takes one of the LLVM raw_ostream objects) and have it use a method from this third-party library to print out data.  However, the third-party library uses std::ostream.

Is there a way to create a std::ostream from a raw_ostream?

-- John T.




More information about the llvm-dev mailing list