Switch raw_svector_ostream to use the vector as the ostream buffer.
authorDaniel Dunbar <daniel@zuster.org>
Wed, 19 Aug 2009 17:54:29 +0000 (17:54 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 19 Aug 2009 17:54:29 +0000 (17:54 +0000)
commit425d08c654c7893782b1215f9b2715bc1d90bd07
treed49acf322133866d49b89f7145bab83860305af3
parentc2da6fb3e50902daf670fe83b8b017a2bcba05df
Switch raw_svector_ostream to use the vector as the ostream buffer.
 - This avoids unnecessary malloc/free overhead in the common case, and
   unnecessary copying from the ostream buffer into the output vector.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79434 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/raw_ostream.h
lib/Support/raw_ostream.cpp