diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-08-19 18:40:58 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-08-19 18:40:58 +0000 |
commit | e813cbaa21c4f090f8b79a611f49480011f25298 (patch) | |
tree | edc9d74a8a3806f1a9db4ddba397d2e74263b41e /clang/lib/CodeGen/CGBuilder.h | |
parent | 45e5670ede6ec952c4eb2051b377d0a039c43970 (diff) | |
download | bcm5719-llvm-e813cbaa21c4f090f8b79a611f49480011f25298.tar.gz bcm5719-llvm-e813cbaa21c4f090f8b79a611f49480011f25298.zip |
Change raw_svector_ostream to reserve the input buffer if necessary, Ted was
right.
- This class turns out to be much more convenient to use if we do this; clients
can make sure the buffer is always big enough if they care (since our current
idiom tends to be to use a SmallString<256> for the input to this we should
generally be avoiding an unnecessary malloc).
Also, add a convenience raw_svector_ostream::str method which flushes the buffer
and returns a StringRef for the vector contents.
llvm-svn: 79446
Diffstat (limited to 'clang/lib/CodeGen/CGBuilder.h')
0 files changed, 0 insertions, 0 deletions