[ELF] Convert ELF.h to Expected<T>.
Audit RequiredrL287081

Description

[ELF] Convert ELF.h to Expected<T>.

This has two advantages:

  1. We slowly move away from ErrorOr to the new handling interface,

in the hope of having an uniform error handling in LLVM, eventually.

  1. We're starting to have *meaningful* error messages for invalid

object ELF files, rather than a generic "parse error". At some point
we should include also the offset to improve the quality of the
diagnostic.

Details

Auditors
Bigcheese
Committed
davideNov 15 2016, 9:10 PM
Parents
rL287080: Fix non-reserved name usage
Branches
Unknown
Tags
Unknown