1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00
llvm-mirror/include/llvm/Object
Kevin Enderby 945617b128 Change llvm-objdump, llvm-nm and llvm-size when reporting an object file error
when the object is from a slice of a Mach-O Universal Binary use something like
"foo.o (for architecture i386)" as part of the error message when expected.

Also fixed places in these tools that were ignoring object file errors from
MachOUniversalBinary::getAsObjectFile() when the code moved on to see if
the slice was an archive.

To do this MachOUniversalBinary::getAsObjectFile() and
MachOUniversalBinary::getObjectForArch() were changed from returning
ErrorOr<...> to Expected<...> then that was threaded up to its users.

Converting these interfaces to Expected<> from ErrorOr<> does involve
touching a number of places. To contain the changes for now the use of
errorToErrorCode() is still used in two places yet to be fully converted.

llvm-svn: 271332
2016-05-31 20:35:34 +00:00
..
Archive.h Change llvm-objdump, llvm-nm and llvm-size when reporting an object file error 2016-05-17 17:10:12 +00:00
ArchiveWriter.h Fix bug where temporary file would be left behind every time an archive was updated. 2016-05-09 13:31:11 +00:00
Binary.h Thread Expected<...> up from createMachOObjectFile() to allow llvm-objdump to produce a real error message 2016-04-06 22:14:09 +00:00
COFF.h Object: ensure that structures are fully defined 2016-05-25 05:23:02 +00:00
COFFImportFile.h Object: Fix COFF import file's symbols. 2015-09-01 06:01:53 +00:00
ELF.h Use ArrayRef for contiguous areas in ELF. NFC. 2016-04-05 14:47:22 +00:00
ELFObjectFile.h Recommit r270547 ([llvm-dwarfdump] - Teach dwarfdump to decompress debug sections in zlib style.) 2016-05-24 12:48:46 +00:00
ELFTypes.h Thread Expected<...> up from libObject’s getName() for symbols to allow llvm-objdump to produce a good error message. 2016-04-20 21:24:34 +00:00
Error.h [Object] Move isNotObjectErrorInvalidFileType out of header. 2016-05-17 21:38:53 +00:00
IRObjectFile.h Clean the API for CollectAsmUndefinedRefs, taking a Triple and a String InlineAsm instead of a Module (NFC) 2016-04-22 04:58:12 +00:00
MachO.h Recommit r270547 ([llvm-dwarfdump] - Teach dwarfdump to decompress debug sections in zlib style.) 2016-05-24 12:48:46 +00:00
MachOUniversal.h Change llvm-objdump, llvm-nm and llvm-size when reporting an object file error 2016-05-31 20:35:34 +00:00
ModuleSummaryIndexObjectFile.h [ThinLTO] Remove unused/incomplete lazy summary reading support (NFC) 2016-04-22 01:52:00 +00:00
ObjectFile.h Recommit r270547 ([llvm-dwarfdump] - Teach dwarfdump to decompress debug sections in zlib style.) 2016-05-24 12:48:46 +00:00
RelocVisitor.h [NFC] Header cleanup 2016-04-18 09:17:29 +00:00
StackMapParser.h [NFC] Header cleanup 2016-04-18 09:17:29 +00:00
SymbolicFile.h Apply clang-tidy's misc-move-constructor-init throughout LLVM. 2016-05-27 14:27:24 +00:00
SymbolSize.h Make computeSymbolSizes never fail. 2015-06-24 19:57:32 +00:00