History log of /external/llvm/include/llvm/Support/ErrorOr.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
cd81d94322a39503e4a3e87b6ee03d4fcb3465fb 21-Jul-2014 Stephen Hines <srhines@google.com> Update LLVM for rebase to r212749.

Includes a cherry-pick of:
r212948 - fixes a small issue with atomic calls

Change-Id: Ib97bd980b59f18142a69506400911a6009d9df18
/external/llvm/include/llvm/Support/ErrorOr.h
36b56886974eae4f9c5ebc96befd3e7bfe5de338 24-Apr-2014 Stephen Hines <srhines@google.com> Update to LLVM 3.5a.

Change-Id: Ifadecab779f128e62e430c2b4f6ddd84953ed617
/external/llvm/include/llvm/Support/ErrorOr.h
c86cf046501035b9b931bb2a86ed7b81b8fa9847 06-Nov-2013 Rafael Espindola <rafael.espindola@gmail.com> Remove another unused, and IMHO, not very desirable feature of ErrorOr.

One of the uses of the IsValid flag is to support default constructing
a ErrorOr that is not a Error or a Value. There is not much value in
doing that IMHO. If ErrorOr was to have a default constructor, it
should be implemented by default constructing the value, but even that
looks unnecessary.

The other use is to avoid calling destructors on moved objects. This
looks wrong. If the data being moved has non trivial treatment of
moves (an std::vector for example), it is its destructor that should
handle it, not ~ErrorOr.

With this change ErrorOr becomes a fairly simple wrapper and should
always be better than using an error_code + value in an API.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194109 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/ErrorOr.h
23c8d2bf861ac0984da0b214fa08090abcba1869 05-Nov-2013 Rafael Espindola <rafael.espindola@gmail.com> Fix MSVC build by not putting an error_code directly in a union.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194032 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/ErrorOr.h
f94b3480fce38b376d02fb0775b9448bbda9313b 05-Nov-2013 Rafael Espindola <rafael.espindola@gmail.com> Simplify ErrorOr.

ErrorOr had quiet a bit of complexity and indirection to be able to hold a user
type with the error.

That feature is not used anymore. This patch removes it, it will live in svn
history if we ever need it again.

If we do need it again, IMHO there is one thing that should be done
differently: Holding extra info in the error is not a property a function also
returning a value or not. The ability to hold extra info should be in the error
type and ErrorOr templated over it so that we don't need the funny looking
ErrorOr<void>.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194030 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/ErrorOr.h
135fe6ac5f5b80ef68c19b3ec7bb0063e28f2bab 22-Oct-2013 Benjamin Kramer <benny.kra@googlemail.com> Speling fixes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193165 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/ErrorOr.h
9b4886ee55c4d13cf0f663fe0ee5e0cfacb39667 28-Feb-2013 Michael J. Spencer <bigcheesegs@gmail.com> [Support][ErrorOr] Add support for implicit conversion from error code/condition enums.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176228 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/ErrorOr.h
780e9004c85ee33a0bdd592aebe9b959f29c4fb2 06-Feb-2013 Michael J. Spencer <bigcheesegs@gmail.com> [Support][ErrorOr] Add support for convertable types.

Thanks to Andrew, David, and Aaron for helping fix this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174552 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/ErrorOr.h
2a78bb961ad99cfc9ae4e8a05a9a5a6bf84e41f3 05-Feb-2013 Andrew Trick <atrick@apple.com> Revert "[Support][ErrorOr] Add support for convertable types."

This reverts commit a33e1fafac7fedb1b080ef07ddf9ad6ddff3a830.

This unit test crashes on Darwon. It needs to be temporarily reverted
to unblock the test infrastructure.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174458 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/ErrorOr.h
2ebc580638548744dfbd7637d56156e2dcf7ea2c 05-Feb-2013 Meador Inge <meadori@codesourcery.com> Support: ensure proper state in ErrorOr copy ctors before calling 'get'

Some paths through the copy constructors for 'ErrorOr' were calling
'get' when 'HasError' and 'IsValid' were not properly initialized.
Depending on what happened to be in memory for those member variables
the asserts in 'get' might incorrectly fire. Fixed by ensuring that
the member variables in question are always initialized before calling
'get'.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174381 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/ErrorOr.h
a33e1fafac7fedb1b080ef07ddf9ad6ddff3a830 05-Feb-2013 Michael J. Spencer <bigcheesegs@gmail.com> [Support][ErrorOr] Add support for convertable types.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174357 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/ErrorOr.h
4d79724e130e69e3ce6327680460f399c18cb7eb 23-Jan-2013 Michael J. Spencer <bigcheesegs@gmail.com> [Support][ErrorOr] Don't use nullptr :(

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173212 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/ErrorOr.h
bdd4e1311830bea92c8b8c09f0644cba15421241 23-Jan-2013 Michael J. Spencer <bigcheesegs@gmail.com> [Support][ErrorOr] Add optimized specialization of ErrorOr<void>.

ErrorOr<void> represents an operation that returns nothing, but can still fail.
It should be used in cases where you need the aditional user data that ErrorOr
provides over error_code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173209 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/ErrorOr.h
7ad70bf46adf7a444c3318ba165e0cfd37fdd591 22-Jan-2013 Michael J. Spencer <bigcheesegs@gmail.com> [Support][ErrorOr] Make old gcc happy.

Apparently this is how C++98 worked pre-DR. (Thanks Richard).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173203 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/ErrorOr.h
01812bebcc345b09ce261317b6fdefde8f097642 20-Jan-2013 Michael J. Spencer <bigcheesegs@gmail.com> [Support] Port ErrorOr<T> from lld to C++03.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172991 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/ErrorOr.h