aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/yaml-bench/YAMLBench.cpp
AgeCommit message (Collapse)AuthorFilesLines
2014-08-01Remove some calls to std::move.Rafael Espindola1-3/+3
Instead of moving out the data in a ErrorOr<std::unique_ptr<Foo>>, get a reference to it. Thanks to David Blaikie for the suggestion. llvm-svn: 214516
2014-07-06Update the MemoryBuffer API to use ErrorOr.Rafael Espindola1-2/+4
llvm-svn: 212405
2014-06-26Revert "Introduce a string_ostream string builder facilty"Alp Toker1-13/+15
Temporarily back out commits r211749, r211752 and r211754. llvm-svn: 211814
2014-06-26Introduce a string_ostream string builder faciltyAlp Toker1-15/+13
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-12Remove system_error.h.Rafael Espindola1-1/+1
This is a minimal change to remove the header. I will remove the occurrences of "using std::error_code" in a followup patch. llvm-svn: 210803
2014-04-05Fix typoDavid Blaikie1-1/+1
Differential Revision: http://reviews.llvm.org/D3237 llvm-svn: 205673
2014-03-06Replace OwningPtr<T> with std::unique_ptr<T>.Ahmed Charles1-1/+1
This compiles with no changes to clang/lld/lldb with MSVC and includes overloads to various functions which are used by those projects and llvm which have OwningPtr's as parameters. This should allow out of tree projects some time to move. There are also no changes to libs/Target, which should help out of tree targets have time to move, if necessary. llvm-svn: 203083
2014-03-02[C++11] Switch all uses of the llvm_move macro to use std::moveChandler Carruth1-1/+1
directly, and remove the macro. llvm-svn: 202612
2013-10-18YAMLBench.cpp: Use llvm_move instead of std::move also here.NAKAMURA Takumi1-1/+1
llvm-svn: 193011
2013-10-18[Support][YAML] Add support for accessing tags and tag handle substitution.Michael J. Spencer1-4/+18
llvm-svn: 193004
2012-12-04Sort the #include lines for utils/...Chandler Carruth1-2/+2
I've tried to find main moudle headers where possible, but the TableGen stuff may warrant someone else looking at it. llvm-svn: 169251
2012-04-03Add YAML parser to Support.Michael J. Spencer1-0/+203
llvm-svn: 153977