commit | d8116dc95faf85c1209ae8dc6515950f43dd188f | [log] [tgz] |
---|---|---|
author | Kevin Enderby <enderby@apple.com> | Thu Jan 21 21:13:27 2016 +0000 |
committer | Kevin Enderby <enderby@apple.com> | Thu Jan 21 21:13:27 2016 +0000 |
tree | bd28f2c4c62ca663ec3443f5e801275ddacc9378 | |
parent | faf8f30ad7233c6c308df0fb7d844e4b744fd65a [diff] |
Fix MachOObjectFile::getSymbolSection() to not call report_fatal_error() but to return object_error::parse_failed. Then made the code in llvm-nm do for Mach-O files what is done in the darwin native tools which is to print "(?,?)" or just "s" for bad section indexes. Also added a test to show it prints the bad section index of "42" when printing the fields as raw hex. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@258434 91177308-0d34-0410-b5e6-96231b3b80d8