replaced std::iostream with llvm::raw_ostream