llvm/lib/Object
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
..
Archive.cpp Pass a unique_ptr<MemoryBuffer> to the constructors in the Binary hierarchy. 2014-06-24 13:56:32 +00:00
Binary.cpp Pass a unique_ptr<MemoryBuffer> to the constructors in the Binary hierarchy. 2014-06-24 13:56:32 +00:00
CMakeLists.txt ELFObjectWriter: deduplicate suffices in strtab 2014-04-30 16:25:02 +00:00
COFFObjectFile.cpp Pass a unique_ptr<MemoryBuffer> to the constructors in the Binary hierarchy. 2014-06-24 13:56:32 +00:00
COFFYAML.cpp obj2yaml: Don't crash if the characteristics field is zero 2014-04-09 16:38:15 +00:00
ELF.cpp [Mips] Add more relocation types and MIPS specific e_flags constants. 2014-05-20 09:27:49 +00:00
ELFObjectFile.cpp Replace two release calls with std::move. I missed this on the previous commit. 2014-06-24 14:25:17 +00:00
ELFYAML.cpp [yaml2obj][obj2yaml] Support ELF symbol's visibility flags (default/hidden/protected). 2014-06-06 07:41:57 +00:00
Error.cpp Remove unused and odd code. 2014-06-13 15:36:17 +00:00
IRObjectFile.cpp Pass a unique_ptr<MemoryBuffer> to the constructors in the Binary hierarchy. 2014-06-24 13:56:32 +00:00
LLVMBuild.txt LLVMBuild.txt: Add missing dependencies. 2014-04-10 11:16:47 +00:00
MachOObjectFile.cpp Introduce a string_ostream string builder facilty 2014-06-26 00:00:48 +00:00
MachOUniversal.cpp Pass a unique_ptr<MemoryBuffer> to the constructors in the Binary hierarchy. 2014-06-24 13:56:32 +00:00
Makefile
Object.cpp Pass a std::unique_ptr& to the create??? methods is lib/Object. 2014-06-23 22:00:37 +00:00
ObjectFile.cpp Pass a unique_ptr<MemoryBuffer> to the constructors in the Binary hierarchy. 2014-06-24 13:56:32 +00:00
StringTableBuilder.cpp ELFObjectWriter: deduplicate suffices in strtab 2014-04-30 16:25:02 +00:00
SymbolicFile.cpp Pass a unique_ptr<MemoryBuffer> to the constructors in the Binary hierarchy. 2014-06-24 13:56:32 +00:00
YAML.cpp Object: Don't double-escape empty hexdata 2014-03-20 06:28:52 +00:00