llvm-6502/tools/llvm-readobj
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
..
ARMAttributeParser.cpp
ARMAttributeParser.h
ARMEHABIPrinter.h Return ErrorOr from getSection. 2015-07-01 12:56:27 +00:00
ARMWinEHPrinter.cpp Don't return error_code from function that never fails. 2015-06-29 23:29:12 +00:00
ARMWinEHPrinter.h
CMakeLists.txt
COFFDumper.cpp Don't return error_code from a function that doesn't fail. 2015-06-30 04:08:37 +00:00
ELFDumper.cpp Return ErrorOr from getSection. 2015-07-01 12:56:27 +00:00
Error.cpp
Error.h
llvm-readobj.cpp Don't return error_code from function that never fails. 2015-06-29 23:29:12 +00:00
llvm-readobj.h
LLVMBuild.txt
MachODumper.cpp Don't return error_code from a function that doesn't fail. 2015-06-30 04:08:37 +00:00
Makefile
ObjDumper.cpp
ObjDumper.h
StackMapPrinter.h
StreamWriter.cpp
StreamWriter.h
Win64EHDumper.cpp
Win64EHDumper.h