[patch] Simplify ErrorOr

Rafael EspĂ­ndola rafael.espindola at gmail.com
Sun Nov 3 04:49:12 PST 2013


On 2 November 2013 19:10, Alp Toker <alp at nuanti.com> wrote:
> Hello Rafael,
>
> CC'ing in Michael J. Spencer who seems to have put a lot of work into
> this utility class.

He was cced already :-)

> Agree that the uses in LLVM core do not add value.
>
> Following file history, the origin and main consumer of this seems to be
> lld -- did you check that it still builds with your changes?

It is using ErrorOr<void> but not passing any extra data. The original
email includes a patch replacing those with error_code.

> Alp.


Cheers,
Rafael



More information about the llvm-commits mailing list