OSDN Git Service

Simplify the raw_svector_ostream tweak from r212816
authorAlp Toker <alp@nuanti.com>
Fri, 11 Jul 2014 18:23:08 +0000 (18:23 +0000)
committerAlp Toker <alp@nuanti.com>
Fri, 11 Jul 2014 18:23:08 +0000 (18:23 +0000)
commit1736df6ae099e5d6a5e8b40c50d42012fd4b36b5
treef82279993683a36bec1d5aa6d8c6eb1f0818bdd7
parentc345ba880db4d68b5ee534aa2ccd24295f152dcd
Simplify the raw_svector_ostream tweak from r212816

The memcpy() and overlap helps didn't help much with timings, so clean up the change.

The difference at this point is that we now leave growth of the storage buffer
up to SmallVector's implementation:

 -   OS.reserve(OS.capacity() * 2);
 +   OS.reserve(OS.size() + 64);

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