1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00
llvm-mirror/lib/DebugInfo/Symbolize
Kevin Enderby 413f7c6823 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
..
CMakeLists.txt [LLVMSymbolize] Factor out the logic for printing structs from DIContext. NFC. 2015-11-03 22:20:52 +00:00
DIPrinter.cpp Apply most suggestions of clang-tidy's performance-unnecessary-value-param 2016-06-08 19:09:22 +00:00
LLVMBuild.txt
SymbolizableObjectFile.cpp Thread Expected<...> up from libObject’s getSymbolAddress() for symbols to allow 2016-06-24 18:24:42 +00:00
SymbolizableObjectFile.h [Symbolizer] Don't use PE symbol tables to override PDB symbols 2015-11-13 17:00:36 +00:00
Symbolize.cpp Try one more time to pacify -Wpessimizing-move, MSVC, libstdc++4.7, and the world without a named variable 2016-06-06 23:46:14 +00:00