llvm-6502/include/llvm/Object
Rafael Espindola df3edb6d36 Return ErrorOr from getSection.
This also improves the logic of what is an error:

* getSection(uint_32): only return an error if the index is out of bounds. The
  index 0 corresponds to a perfectly valid entry.
* getSection(Elf_Sym): Returns null for symbols that normally don't have
  sections and error for out of bound indexes.

In many places this just moves the report_fatal_error up the stack, but those
can then be fixed in smaller patches.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241156 91177308-0d34-0410-b5e6-96231b3b80d8
2015-07-01 12:56:27 +00:00
..
Archive.h Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
ArchiveWriter.h Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
Binary.h Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
COFF.h Use ErrorOr in getRelocationAdress. 2015-06-30 20:32:26 +00:00
COFFYAML.h Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
ELF.h Return ErrorOr from getSection. 2015-07-01 12:56:27 +00:00
ELFObjectFile.h Return ErrorOr from getSection. 2015-07-01 12:56:27 +00:00
ELFTypes.h Convert obj->getSymbolName to sym->getName. 2015-06-29 21:24:55 +00:00
ELFYAML.h [obj2yaml/yaml2obj] Add SHT_MIPS_ABIFLAGS section support 2015-05-07 15:40:48 +00:00
Error.h Return ErrorOr from getSection. 2015-07-01 12:56:27 +00:00
IRObjectFile.h Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
MachO.h Use ErrorOr in getRelocationAdress. 2015-06-30 20:32:26 +00:00
MachOUniversal.h Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
ObjectFile.h Use ErrorOr in getRelocationAdress. 2015-06-30 20:32:26 +00:00
RelocVisitor.h Cleanup getRelocationAddend. 2015-06-30 00:33:59 +00:00
StackMapParser.h [StackMaps] Add a lightweight parser for stackmap version 1 sections. 2015-06-26 23:56:53 +00:00
SymbolicFile.h Change how symbol sizes are handled in lib/Object. 2015-06-24 10:20:30 +00:00
SymbolSize.h Make computeSymbolSizes never fail. 2015-06-24 19:57:32 +00:00