Modify raw_svector_ostream to use its SmallString without additional buffering.
authorYaron Keren <yaron.keren@gmail.com>
Thu, 13 Aug 2015 06:19:52 +0000 (06:19 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Thu, 13 Aug 2015 06:19:52 +0000 (06:19 +0000)
commitd4177b27058cfed2320f3ea1bf7ac2552f5a3e71
treeece84a014a9deaad47ba5741880552a633aafde4
parent785c5129429c87278237cc4958e2010a574913b8
Modify raw_svector_ostream to use its SmallString without additional buffering.
This is faster and avoids the stream and SmallString state synchronization issue.
resync() is a no-op and may be safely deleted.  I'll do so in a follow-up commit.

Reviewed by Rafael Espindola.

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