From: Chris Lattner
Note that using the other stream headers (<sstream> for -example) is allowed normally, it is just <iostream> that is -causing problems.
- -In addition, new code should always -use raw_ostream or -the llvm::MemoryBuffer API (for reading in files).
+example) is not problematic in this regard (just <iostream>). +However, raw_ostream provides various APIs that are better performing for almost +every use than std::ostream style APIs, so you should just use it for new +code. + +New code should always +use raw_ostream for writing, or +the llvm::MemoryBuffer API for reading files.