llvm/lib/TableGen
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
..
CMakeLists.txt Move SetTheory from utils/TableGen into lib/TableGen so Clang can use it. 2014-06-17 13:10:38 +00:00
Error.cpp tblgen: Twinify PrintFatalError. 2014-03-29 17:17:15 +00:00
LLVMBuild.txt LLVMBuild: Remove trailing newline, which irked me. 2011-12-12 19:48:00 +00:00
Main.cpp Remove 'using std::errro_code' from lib. 2014-06-13 02:24:39 +00:00
Makefile Remove exception handling usage from tblgen. 2012-10-25 20:33:17 +00:00
module.modulemap [modules] Add module maps for LLVM. These are not quite ready for prime-time 2014-05-21 02:46:14 +00:00
Record.cpp Convert some assert(0) to llvm_unreachable or fold an 'if' condition into the assert. 2014-06-19 06:10:58 +00:00
SetTheory.cpp Introduce a string_ostream string builder facilty 2014-06-26 00:00:48 +00:00
StringMatcher.cpp Emit memcmp directly from the StringMatcherEmitter. 2012-05-20 18:10:42 +00:00
TableGenBackend.cpp A bugfix for tblgen, in the function ‘emitSourceFileHeader’. 2013-01-28 07:35:33 +00:00
TGLexer.cpp [tablegen] Add !listconcat operator with the similar semantics as !strconcat 2014-05-07 10:13:19 +00:00
TGLexer.h [tablegen] Add !listconcat operator with the similar semantics as !strconcat 2014-05-07 10:13:19 +00:00
TGParser.cpp Introduce a string_ostream string builder facilty 2014-06-26 00:00:48 +00:00
TGParser.h Fix error in tablegen when either operand of !if is an empty list. 2014-06-10 20:10:08 +00:00