llvm-project/llvm/lib/Support
Daniel Dunbar e813cbaa21 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
2009-08-19 18:40:58 +00:00
..
APFloat.cpp Fix an uninitialized value warning in APFloat. 2009-08-18 18:20:37 +00:00
APInt.cpp Convert APint::{fromString,APInt,getBitsNeeded} to use StringRef. 2009-08-13 02:33:34 +00:00
APSInt.cpp Added FoldingSet style 'profiling' support for APSInt. 2008-01-19 04:31:12 +00:00
Allocator.cpp Added a test and fixed a bug in BumpPtrAllocator relating to large alignment 2009-07-25 21:26:02 +00:00
CMakeLists.txt Update CMake files. 2009-07-31 18:50:22 +00:00
CommandLine.cpp Remove duplicated colons and spaces. 2009-08-02 12:13:02 +00:00
ConstantRange.cpp Fix ConstantRange::unionWith. Also make it work a little hard in some cases to 2009-07-19 03:44:35 +00:00
Debug.cpp Hide the DOUT static variable behind a function interface. 2009-07-20 16:16:06 +00:00
Dwarf.cpp llvm_unreachable->llvm_unreachable(0), LLVM_UNREACHABLE->llvm_unreachable. 2009-07-14 16:55:14 +00:00
ErrorHandling.cpp This void is implicit in C++. 2009-08-12 22:10:57 +00:00
FileUtilities.cpp Fix more -Wshorten-64-to-32 warnings. 2008-05-05 18:30:58 +00:00
FoldingSet.cpp llvm_unreachable->llvm_unreachable(0), LLVM_UNREACHABLE->llvm_unreachable. 2009-07-14 16:55:14 +00:00
FormattedStream.cpp raw_ostream: Reduce FormattedStream's reliance on raw_ostream's implementation. 2009-08-18 23:36:04 +00:00
GraphWriter.cpp cerr isn't buffered so it doesn't need to be flushed. 2009-08-05 00:44:01 +00:00
IsInf.cpp Remove attribution from file headers, per discussion on llvmdev. 2007-12-29 20:36:04 +00:00
IsNAN.cpp Remove attribution from file headers, per discussion on llvmdev. 2007-12-29 20:36:04 +00:00
Makefile Removed trailing whitespace from Makefiles. 2009-01-09 16:44:42 +00:00
ManagedStatic.cpp Split the thread-related APIs out into their own file, and add a few more 2009-06-16 17:33:51 +00:00
MemoryBuffer.cpp Tweak MemoryBuffer::getSTDIN so that it returns after the first EOF. 2009-05-18 08:44:04 +00:00
PluginLoader.cpp Have scoped mutexes take referenes instead of pointers. 2009-07-07 18:33:04 +00:00
PrettyStackTrace.cpp add a knob to turn off PrettyStackTrace globally. Patch by Zoltan 2009-07-16 06:17:45 +00:00
SlowOperationInformer.cpp Remove attribution from file headers, per discussion on llvmdev. 2007-12-29 20:36:04 +00:00
SmallPtrSet.cpp Fix several const-correctness issues, resolving some -Wcast-qual warnings. 2008-08-05 14:45:15 +00:00
SourceMgr.cpp add a trivial line # cache to SourceMgr to make repeated queries to 2009-08-11 17:49:14 +00:00
Statistic.cpp Have scoped mutexes take referenes instead of pointers. 2009-07-07 18:33:04 +00:00
Streams.cpp Remove more iostream header includes. Needed to implement a "FlushStream" 2008-05-29 21:46:33 +00:00
StringExtras.cpp teach EscapeString and UnescapeString to handle ". 2009-04-15 20:12:52 +00:00
StringMap.cpp Convert StringMap to using StringRef for its APIs. 2009-07-23 18:17:34 +00:00
StringPool.cpp Convert StringMap to using StringRef for its APIs. 2009-07-23 18:17:34 +00:00
SystemUtils.cpp Fix FindExecutable to use sys::Path::GetMainExecutable instead of 2009-08-05 20:21:17 +00:00
TargetRegistry.cpp Remove now unused arguments from TargetRegistry::lookupTarget. 2009-08-03 04:20:57 +00:00
Timer.cpp Have scoped mutexes take referenes instead of pointers. 2009-07-07 18:33:04 +00:00
Triple.cpp Improve Triple to recognize the OS in i386-mingw32. 2009-08-18 19:26:55 +00:00
Twine.cpp Switch Twine::str() to use toVector(), which is now efficient. 2009-08-19 18:09:47 +00:00
raw_ostream.cpp Change raw_svector_ostream to reserve the input buffer if necessary, Ted was 2009-08-19 18:40:58 +00:00