[Support][ErrorOr] Add optimized specialization of ErrorOr<void>.
authorMichael J. Spencer <bigcheesegs@gmail.com>
Wed, 23 Jan 2013 00:18:31 +0000 (00:18 +0000)
committerMichael J. Spencer <bigcheesegs@gmail.com>
Wed, 23 Jan 2013 00:18:31 +0000 (00:18 +0000)
commitf71baa84eaca687c06dc44cc1a4349c8a344c48f
tree4116cb9fc6dcac8f2e2af281e3f48af505566d4d
parent01c7cfa2c058892d0c331711f912d24bbe63dde2
[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.

llvm-svn: 173209
llvm/include/llvm/Support/ErrorOr.h
llvm/unittests/Support/ErrorOrTest.cpp