What is the correct way to create a raw_ostream object and use it for printing? I read various articles and the only example I can find is (How to redirect llvm::outs() to file?)
raw_ostream *output = &outs();
which made use of llvm::outs.
Sorry for asking this because I am not too familiar with C++ but had to understand how LLVM works.