[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)
commitbdd4e1311830bea92c8b8c09f0644cba15421241
treefa243ee56abe28a8ff8802924fdd0bf83b05dff9
parent0ec35ac4fcd5c83e2ec35d04fc20db9eb387d289
[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
include/llvm/Support/ErrorOr.h
unittests/Support/ErrorOrTest.cpp