llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld
Kevin Enderby 931cb65df2 Thread Expected<...> up from libObject’s getSymbolAddress() for symbols to allow
a good error message to be produced.

This is nearly the last libObject interface that used ErrorOr and the last one
that appears in llvm/include/llvm/Object/MachO.h .  For Mach-O objects this is
just a clean up because it’s version of getSymbolAddress() can’t return an
error.

I will leave it to the experts on COFF and ELF to actually add meaning full
error messages in their tests if they wish.  And also leave it to these experts
to change the last two ErrorOr interfaces in llvm/include/llvm/Object/ObjectFile.h
for createCOFFObjectFile() and createELFObjectFile() if they wish.

Since there are no test cases for COFF and ELF error cases with respect to
getSymbolAddress() in the test suite this is no functional change (NFC).

llvm-svn: 273701
2016-06-24 18:24:42 +00:00
..
Targets ExecutionEngine: silence unused value warning 2016-06-24 14:31:09 +00:00
CMakeLists.txt modules: Add explicit dependency on intrinsics_gen 2015-06-16 00:44:12 +00:00
LLVMBuild.txt
RTDyldMemoryManager.cpp [RuntimeDyld] Fix '_' stripping in RTDyldMemoryManager::getSymbolAddressInProcess. 2016-03-03 21:23:15 +00:00
RuntimeDyld.cpp Thread Expected<...> up from libObject’s getSymbolAddress() for symbols to allow 2016-06-24 18:24:42 +00:00
RuntimeDyldCOFF.cpp ExecutionEngine: add preliminary support for COFF ARM 2016-06-24 14:11:44 +00:00
RuntimeDyldCOFF.h [NFC] Header cleanup 2016-04-18 09:17:29 +00:00
RuntimeDyldChecker.cpp Apply another batch of fixes from clang-tidy's performance-unnecessary-value-param. 2016-06-17 20:41:14 +00:00
RuntimeDyldCheckerImpl.h [NFC] Header cleanup 2016-04-18 09:17:29 +00:00
RuntimeDyldELF.cpp [RuntimeDyld] Support R_390_PC64 relocation type 2016-05-13 17:23:48 +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