commit | 8a80641a85a8b4afeae5058bf6e9ee405d080541 | [log] [tgz] |
---|---|---|
author | Rafael Espindola <rafael.espindola@gmail.com> | Thu Jul 02 20:55:21 2015 +0000 |
committer | Rafael Espindola <rafael.espindola@gmail.com> | Thu Jul 02 20:55:21 2015 +0000 |
tree | 9f1276474bcde666020c0ad52a9e00d9dfafb04a | |
parent | 397fac95d58198ce97cc59d8520dbe27635f7a6a [diff] |
Return ErrorOr from SymbolRef::getName. This function can really fail since the string table offset can be out of bounds. Using ErrorOr makes sure the error is checked. Hopefully a lot of the boilerplate code in tools/* can go away once we have a diagnostic manager in Object. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241297 91177308-0d34-0410-b5e6-96231b3b80d8