llvm.org GIT mirror llvm / 983c592
disuade people from using ostream. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79866 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 11 years ago
1 changed file(s) with 8 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
989989
990990
991991

Note that using the other stream headers (<sstream> for

992 example) is allowed normally, it is just <iostream> that is
993 causing problems.

994
995

In addition, new code should always

996 use raw_ostream or
997 the llvm::MemoryBuffer API (for reading in files).

992 example) is not problematic in this regard (just <iostream>).
993 However, raw_ostream provides various APIs that are better performing for almost
994 every use than std::ostream style APIs, so you should just use it for new
995 code.

996
997

New code should always

998 use raw_ostream for writing, or
999 the llvm::MemoryBuffer API for reading files.

9981000
9991001
10001002