llvm/lib
Alp Toker 2559070422 Introduce a string_ostream string builder facilty
string_ostream is a safe and efficient string builder that combines opaque
stack storage with a built-in ostream interface.

small_string_ostream<bytes> additionally permits an explicit stack storage size
other than the default 128 bytes to be provided. Beyond that, storage is
transferred to the heap.

This convenient class can be used in most places an
std::string+raw_string_ostream pair or SmallString<>+raw_svector_ostream pair
would previously have been used, in order to guarantee consistent access
without byte truncation.

The patch also converts much of LLVM to use the new facility. These changes
include several probable bug fixes for truncated output, a programming error
that's no longer possible with the new interface.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211749 91177308-0d34-0410-b5e6-96231b3b80d8
2014-06-26 00:00:48 +00:00
..
Analysis Introduce a string_ostream string builder facilty 2014-06-26 00:00:48 +00:00
AsmParser Introduce a string_ostream string builder facilty 2014-06-26 00:00:48 +00:00
Bitcode Rename loop unrolling and loop vectorizer metadata to have a common prefix. 2014-06-25 15:41:00 +00:00
CodeGen Introduce a string_ostream string builder facilty 2014-06-26 00:00:48 +00:00
DebugInfo Introduce a string_ostream string builder facilty 2014-06-26 00:00:48 +00:00
ExecutionEngine [RuntimeDyld] Adds the necessary hooks to MCJIT to be able to debug generated 2014-06-25 00:20:53 +00:00
IR Introduce a string_ostream string builder facilty 2014-06-26 00:00:48 +00:00
IRReader Introduce a string_ostream string builder facilty 2014-06-26 00:00:48 +00:00
LineEditor [CMake] Use LINK_LIBS instead of target_link_libraries(). 2014-02-26 06:41:29 +00:00
Linker Replace some assert(0)'s with llvm_unreachable. 2014-06-18 05:05:13 +00:00
LTO Introduce a string_ostream string builder facilty 2014-06-26 00:00:48 +00:00
MC Introduce a string_ostream string builder facilty 2014-06-26 00:00:48 +00:00
Object Introduce a string_ostream string builder facilty 2014-06-26 00:00:48 +00:00
Option Introduce a string_ostream string builder facilty 2014-06-26 00:00:48 +00:00
ProfileData Renaming SwapByteOrder() to getSwappedBytes() 2014-06-14 11:36:01 +00:00
Support Introduce a string_ostream string builder facilty 2014-06-26 00:00:48 +00:00
TableGen Introduce a string_ostream string builder facilty 2014-06-26 00:00:48 +00:00
Target Introduce a string_ostream string builder facilty 2014-06-26 00:00:48 +00:00
Transforms Introduce a string_ostream string builder facilty 2014-06-26 00:00:48 +00:00
CMakeLists.txt ProfileData: Introduce the InstrProfReader interface and a text reader 2014-03-21 17:24:48 +00:00
LLVMBuild.txt ProfileData: Introduce the InstrProfReader interface and a text reader 2014-03-21 17:24:48 +00:00
Makefile ProfileData: Introduce the InstrProfReader interface and a text reader 2014-03-21 17:24:48 +00:00