llvm/lib/Support
Daniel Dunbar 9441cfe488 Fix off-by-one in llvm::Format::print.
- This also shortens the Format.h implementation, and uses the print buffer
   fully (it was wasting a character).

 - This manifested as llvm-test failures, because one side effect was that
   raw_ostream would write garbage '\x00' values into the output stream if it
   happened that the string was at the end of the buffer. This meant that grep
   would report 'Binary file matches', which meant the silly pattern matching
   llvm-test eventually does would fail. Cute. :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79862 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-23 20:31:39 +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
APFloat.cpp Fix typo. 2009-08-21 23:09:47 +00:00
APInt.cpp Clean up the APInt function getDigit. 2009-08-21 06:48:37 +00:00
APSInt.cpp Added FoldingSet style 'profiling' support for APSInt. 2008-01-19 04:31:12 +00:00
CMakeLists.txt Update CMake files. 2009-07-31 18:50:22 +00:00
CommandLine.cpp clean up #includes. 2009-08-23 18:09:02 +00:00
ConstantRange.cpp Change Pass::print to take a raw ostream instead of std::ostream, 2009-08-23 06:03:38 +00:00
Debug.cpp Fix some refactos for iostream changes (in -Asserts mode). 2009-08-23 08:50:52 +00:00
Dwarf.cpp llvm_unreachable->llvm_unreachable(0), LLVM_UNREACHABLE->llvm_unreachable. 2009-07-14 16:55:14 +00:00
ErrorHandling.cpp Add a comment explaining why llvm_unreachable_internal doesn't call 2009-08-20 17:15:19 +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 switch formattedstream to use raw_ostream::indent. This eliminates 2009-08-22 23:16:09 +00:00
GraphWriter.cpp convert LoopInfo.h and GraphWriter.h to use raw_ostream 2009-08-23 07:19:13 +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 remove some uses of llvm/Support/Streams.h 2009-08-23 08:43:55 +00:00
PrettyStackTrace.cpp Switch to SmallString::str from SmallString::c_str, and remove 2009-08-19 20:07:03 +00:00
raw_ostream.cpp Fix off-by-one in llvm::Format::print. 2009-08-23 20:31:39 +00:00
SlowOperationInformer.cpp remove some uses of llvm/Support/Streams.h 2009-08-23 08:43:55 +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 remove some uses of llvm/Support/Streams.h 2009-08-23 08:43:55 +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 Kill off more cerr/cout uses and prune includes a bit. 2009-08-23 11:37:21 +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 remove some uses of llvm/Support/Streams.h 2009-08-23 08:43:55 +00:00
Triple.cpp Add triple parsing support for TCE. 2009-08-19 20:46:03 +00:00
Twine.cpp Switch Twine::str() to use toVector(), which is now efficient. 2009-08-19 18:09:47 +00:00