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)
commit3d1173ba1a53cab08ed2c33e47dd617df77a914b
tree5d7e50d213b4bb34c2eacfc6bb950ebeb379df26
parentb768f77ed6edf87771702a6f65419ec3f9dc69cb
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.

llvm-svn: 244870
llvm/include/llvm/Support/raw_ostream.h
llvm/lib/Support/raw_ostream.cpp