llvm-6502/lib/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.cpp Remove object_error::success and use std::error_code() instead 2015-06-09 15:20:42 +00:00
ArchiveWriter.cpp [ArchiveWriter] Use EndianStream. No functional change intended. 2015-06-17 16:02:56 +00:00
Binary.cpp Object: Handle Mach-O kext bundle files 2015-02-25 22:59:20 +00:00
CMakeLists.txt Revert "[FaultMaps] Move FaultMapParser to Object/" 2015-06-23 20:09:03 +00:00
COFFObjectFile.cpp Use ErrorOr in getRelocationAdress. 2015-06-30 20:32:26 +00:00
COFFYAML.cpp Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
ELF.cpp
ELFObjectFile.cpp [Object, ELF] Don't assert on invalid magic in createELFObjectFile. 2015-06-04 23:14:43 +00:00
ELFYAML.cpp Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
Error.cpp Return ErrorOr from getSection. 2015-07-01 12:56:27 +00:00
IRObjectFile.cpp Simplify the Mangler interface now that DataLayout is mandatory. 2015-06-23 13:59:29 +00:00
LLVMBuild.txt
MachOObjectFile.cpp Use ErrorOr in getRelocationAdress. 2015-06-30 20:32:26 +00:00
MachOUniversal.cpp [Object] Search for architecures by name in MachOUniversalBinary::getObjectForArch() 2015-06-22 21:33:24 +00:00
Makefile
Object.cpp Use ErrorOr in getRelocationAdress. 2015-06-30 20:32:26 +00:00
ObjectFile.cpp Implement containsSymbol with other lower level methods. 2015-06-30 20:18:49 +00:00
RecordStreamer.cpp Move alignment from MCSectionData to MCSection. 2015-05-21 19:20:38 +00:00
RecordStreamer.h Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
SymbolicFile.cpp Object: Handle Mach-O kext bundle files 2015-02-25 22:59:20 +00:00
SymbolSize.cpp [SymbolSize] Skip sorting by index, just assign by index. 2015-06-29 16:05:00 +00:00