commit | 6a445561f960dcd533be8c0e5616cab0ff2f8d49 | [log] [tgz] |
---|---|---|
author | Rafael Espindola <rafael.espindola@gmail.com> | Thu Nov 03 20:16:53 2016 +0000 |
committer | Rafael Espindola <rafael.espindola@gmail.com> | Thu Nov 03 20:16:53 2016 +0000 |
tree | f4085d60fdf5db0feb925fde70b2f1dfb221f292 | |
parent | 60a7c431c0b224bea13ab0b0785ccecccd327e29 [diff] |
Don't error in the ELFFile constructor. All error checking now happens when the information is needed. The only thing left is the minimum size of the buffer and that can be just a precondition. I will add an ErrorOr create method in a followup commit. Also don't store a pointer to the Header, since it is just a trivial cast. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285961 91177308-0d34-0410-b5e6-96231b3b80d8