1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00
llvm-mirror/tools
Alp Toker fd9ead3b6f 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
..
bugpoint Remove 'using std::error_code' from tools. 2014-06-13 03:07:50 +00:00
bugpoint-passes [C++11] Add 'override' keyword to virtual methods that override their base class. 2014-03-08 08:27:28 +00:00
gold Fix unresolved symbols when loading gold plugin 2014-06-25 08:04:58 +00:00
llc Move MCOptions that aren't shared between programs into their specific 2014-05-21 21:05:09 +00:00
lli Pass a unique_ptr<MemoryBuffer> to the constructors in the Binary hierarchy. 2014-06-24 13:56:32 +00:00
llvm-ar Introduce a string_ostream string builder facilty 2014-06-26 00:00:48 +00:00
llvm-as raw_ostream: Forward declare OpenFlags and include FileSystem.h only where necessary. 2014-04-29 23:26:49 +00:00
llvm-bcanalyzer Remove 'using std::error_code' from tools. 2014-06-13 03:07:50 +00:00
llvm-c-test Convert getFileOffset to getOffset and move it to its only user. 2014-04-21 13:45:32 +00:00
llvm-config Change llvm-config --ldflags to report ${CMAKE_CXX_LINK_FLAGS} 2014-04-25 01:44:20 +00:00
llvm-cov Finishing touch for the std::error_code transition. 2014-06-13 17:20:48 +00:00
llvm-diff [C++] Use 'nullptr'. 2014-04-28 04:05:08 +00:00
llvm-dis Remove 'using std::error_code' from tools. 2014-06-13 03:07:50 +00:00
llvm-dwarfdump Pass a std::unique_ptr& to the create??? methods is lib/Object. 2014-06-23 22:00:37 +00:00
llvm-extract Use range loops. 2014-05-08 19:30:17 +00:00
llvm-jitlistener Support: split object format out of environment 2014-03-06 20:47:11 +00:00
llvm-link raw_ostream: Forward declare OpenFlags and include FileSystem.h only where necessary. 2014-04-29 23:26:49 +00:00
llvm-lto raw_ostream: Forward declare OpenFlags and include FileSystem.h only where necessary. 2014-04-29 23:26:49 +00:00
llvm-mc Move -dwarf-version to an MC level command line option so it's 2014-06-19 06:22:08 +00:00
llvm-mcmarkup Remove 'using std::error_code' from tools. 2014-06-13 03:07:50 +00:00
llvm-nm Pass a std::unique_ptr& to the create??? methods is lib/Object. 2014-06-23 22:00:37 +00:00
llvm-objdump Introduce a string_ostream string builder facilty 2014-06-26 00:00:48 +00:00
llvm-profdata Remove 'using std::error_code' from tools. 2014-06-13 03:07:50 +00:00
llvm-readobj Introduce a string_ostream string builder facilty 2014-06-26 00:00:48 +00:00
llvm-rtdyld Remove 'using std::error_code' from tools. 2014-06-13 03:07:50 +00:00
llvm-shlib autoconf: Fix soname for libLLVM-Major.Minor.so (2nd try) 2014-05-13 19:37:03 +00:00
llvm-size Convert a few methods to use ErrorOr. 2014-06-23 20:41:02 +00:00
llvm-stress raw_ostream: Forward declare OpenFlags and include FileSystem.h only where necessary. 2014-04-29 23:26:49 +00:00
llvm-symbolizer Convert a few methods to use ErrorOr. 2014-06-23 20:41:02 +00:00
lto Remove unused includes following r211294 2014-06-19 19:25:49 +00:00
macho-dump Remove 'using std::error_code' from tools. 2014-06-13 03:07:50 +00:00
msbuild VS integration installer: set SUCCESS=1 if we find VS 2013 2014-03-24 17:33:22 +00:00
obj2yaml Remove unused and odd code. 2014-06-13 15:36:17 +00:00
opt opt: Initialize asm printers 2014-06-13 16:12:08 +00:00
yaml2obj Remove system_error.h. 2014-06-12 17:38:55 +00:00
CMakeLists.txt static link polly into tools 2014-03-14 04:04:14 +00:00
LLVMBuild.txt PGO: llvm-profdata: tool for merging profiles 2014-02-17 23:22:49 +00:00
Makefile lld (build with configur and make) Enable build 2014-06-05 08:49:55 +00:00