llvm/include
Jordan Rose 88c0ed30da Add getValueOr to llvm::Optional<T>.
This takes a single argument convertible to T, and
- if the Optional has a value, returns the existing value,
- otherwise, constructs a T from the argument and returns that.

Inspired by std::experimental::optional from the "Library Fundamentals" C++ TS.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218618 91177308-0d34-0410-b5e6-96231b3b80d8
2014-09-29 18:56:08 +00:00
..
llvm Add getValueOr to llvm::Optional<T>. 2014-09-29 18:56:08 +00:00
llvm-c [C API] Make the 'lower switch' pass available via the C API. 2014-09-11 21:32:32 +00:00