search for: classllvm_1_1raw__os__ostream

Displaying 3 results from an estimated 3 matches for "classllvm_1_1raw__os__ostream".

2012 Jan 23
3
[LLVMdev] Use printing methods of third-party libraries that use std::ostream
Hi all, I need to use the printing methods from a third-party library. The problem is those methods use std::cout but the use of std::ostream methods seems to be disabled in latest versions of LLVM. I'm aware of raw_os_ostream (http://llvm.org/doxygen/classllvm_1_1raw__os__ostream.html) which takes a std::ostream as input. E.g., I could do something like: #include "llvm/Support/raw_os_ostream.h" #include "llvm/Support/raw_ostream.h" raw_os_ostream * rout = new raw_os_ostream(std::cout); // 1 // From now on, use rout rather than std::cout // 2...
2012 Jan 31
0
[LLVMdev] Use printing methods of third-party libraries that use std::ostream
Hi Jorge, > I need to use the printing methods from a third-party library. The > problem is those methods use std::cout but the use of std::ostream > methods seems to be disabled in latest versions of LLVM. > > I'm aware of raw_os_ostream > (http://llvm.org/doxygen/classllvm_1_1raw__os__ostream.html) which > takes a std::ostream as input. E.g., I could do something like: > > #include "llvm/Support/raw_os_ostream.h" > #include "llvm/Support/raw_ostream.h" > > raw_os_ostream * rout = new raw_os_ostream(std::cout); // 1 > // From now on, use rout rat...
2010 Nov 06
1
[LLVMdev] Converting raw_ostream to std::ostream
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.