commit | cc870b19ca17467315a5da769d680c24f3153bc8 | [log] [tgz] |
---|---|---|
author | George Rimar <grimar@accesssoftek.com> | Mon Oct 21 11:06:38 2019 +0000 |
committer | George Rimar <grimar@accesssoftek.com> | Mon Oct 21 11:06:38 2019 +0000 |
tree | 4efb0124c2374a682c395e4c0183f4f2a8fa1dc3 | |
parent | f69d71733b06ed87cfa874ac5f9613458ce8c0e0 [diff] |
[llvm/Object] - Make ELFObjectFile::getRelocatedSection return Expected<section_iterator> It returns just a section_iterator currently and have a report_fatal_error call inside. This change adds a way to return errors and handle them on caller sides. The patch also changes/improves current users and adds test cases. Differential revision: https://reviews.llvm.org/D69167 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@375408 91177308-0d34-0410-b5e6-96231b3b80d8