llvm-project/llvm/tools/llvm-objdump
Alp Toker 614717388c 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.

llvm-svn: 211749
2014-06-26 00:00:48 +00:00
..
CMakeLists.txt [CMake] Update LLVM_LINK_COMPONENTS for each CMakeLists.txt. 2013-12-10 11:13:32 +00:00
COFFDump.cpp Remove 'using std::error_code' from tools. 2014-06-13 03:07:50 +00:00
ELFDump.cpp [Object] Split the ELF interface into 3 parts. 2013-08-08 22:27:13 +00:00
LLVMBuild.txt
MachODump.cpp Pass a std::unique_ptr& to the create??? methods is lib/Object. 2014-06-23 22:00:37 +00:00
Makefile
llvm-objdump.cpp Introduce a string_ostream string builder facilty 2014-06-26 00:00:48 +00:00
llvm-objdump.h Remove all uses of 'using std::error_code' from headers. 2014-06-13 01:25:41 +00:00