llvm/lib/ExecutionEngine/RuntimeDyld
Kevin Enderby a486dcaf36 Thread Expected<...> up from libObject’s getType() for symbols to allow llvm-objdump to produce a good error message.
Produce another specific error message for a malformed Mach-O file when a symbol’s
section index is more than the number of sections.  The existing test case in test/Object/macho-invalid.test
for macho-invalid-section-index-getSectionRawName now reports the error with the message indicating
that a symbol at a specific index has a bad section index and that bad section index value.

Again converting interfaces to Expected<> from ErrorOr<> does involve
touching a number of places. Where the existing code reported the error with a
string message or an error code it was converted to do the same.

Also there some were bugs in the existing code that did not deal with the
old ErrorOr<> return values.  So now with Expected<> since they must be
checked and the error handled, I added a TODO and a comment:
"// TODO: Actually report errors helpfully" and a call something like
consumeError(NameOrErr.takeError()) so the buggy code will not crash
since needed to deal with the Error.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268298 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-02 20:28:12 +00:00
..
Targets Thread Expected<...> up from libObject’s getType() for symbols to allow llvm-objdump to produce a good error message. 2016-05-02 20:28:12 +00:00
CMakeLists.txt modules: Add explicit dependency on intrinsics_gen 2015-06-16 00:44:12 +00:00
LLVMBuild.txt Fix build following r211956 2014-06-28 06:31:47 +00:00
RTDyldMemoryManager.cpp [RuntimeDyld] Fix '_' stripping in RTDyldMemoryManager::getSymbolAddressInProcess. 2016-03-03 21:23:15 +00:00
RuntimeDyld.cpp Thread Expected<...> up from libObject’s getType() for symbols to allow llvm-objdump to produce a good error message. 2016-05-02 20:28:12 +00:00
RuntimeDyldChecker.cpp Reflect the MC/MCDisassembler split on the include/ level. 2016-01-26 16:44:37 +00:00
RuntimeDyldCheckerImpl.h [NFC] Header cleanup 2016-04-18 09:17:29 +00:00
RuntimeDyldCOFF.cpp [RuntimeDyld] Plumb Error/Expected through the internals of RuntimeDyld. 2016-04-27 20:24:48 +00:00
RuntimeDyldCOFF.h [NFC] Header cleanup 2016-04-18 09:17:29 +00:00
RuntimeDyldELF.cpp Thread Expected<...> up from libObject’s getType() for symbols to allow llvm-objdump to produce a good error message. 2016-05-02 20:28:12 +00:00
RuntimeDyldELF.h [RuntimeDyld] Plumb Error/Expected through the internals of RuntimeDyld. 2016-04-27 20:24:48 +00:00
RuntimeDyldImpl.h [RuntimeDyld] Plumb Error/Expected through the internals of RuntimeDyld. 2016-04-27 20:24:48 +00:00
RuntimeDyldMachO.cpp [RuntimeDyld] Plumb Error/Expected through the internals of RuntimeDyld. 2016-04-27 20:24:48 +00:00
RuntimeDyldMachO.h [RuntimeDyld] Plumb Error/Expected through the internals of RuntimeDyld. 2016-04-27 20:24:48 +00:00