[PATCH] D28544: Remove all DWARFDie::getAttributeAsXXX() calls that returned default values and use new llvm::OptionalDefault template instead.
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 10 21:22:39 PST 2017
On closer inspection it looks like llvm::Optional might already have what
you need - a 'getValueOr' member function. Is that it?
On Tue, Jan 10, 2017 at 8:49 PM Greg Clayton via Phabricator <
reviews at reviews.llvm.org> wrote:
> clayborg added a comment.
>
> Do we want the case to be:
>
> llvm::ValueOr(...)
>
> or
>
> llvm::value_or(...)
>
>
> https://reviews.llvm.org/D28544
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170111/487baf15/attachment.html>
More information about the llvm-commits
mailing list