1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00
llvm-mirror/include/llvm/Object
Kevin Enderby 8be76b0f42 Clean up the specific error message for a malformed Mach-O files with bad segment
load commands.

The existing test case in test/Object/macho-invalid.test for
macho-invalid-too-small-segment-load-command has a cmdsize of 55, while
being too small also it is not a multiple of 4.  So when that check is added
this test case will produce a different error. So I constructed a new test case
that will trigger the intended error.

I also changed the error message to be consistent with the other malformed Mach-O
file error messages which prints the load command index.  I also removed both
object_error::macho_load_segment_too_small and
object_error::macho_load_segment_too_many_sections from Object/Error.h
as they are not needed and can just use object_error::parse_failed and let the
error message string distinguish the specific error.

llvm-svn: 268652
2016-05-05 17:43:35 +00:00
..
Archive.h Expose a getFullName for thin archive members. 2016-05-02 13:45:06 +00:00
ArchiveWriter.h Use Child instead of child_iterator in the archive writer. 2015-11-01 00:10:37 +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 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
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 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
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 Clean up the specific error message for a malformed Mach-O files with bad segment 2016-05-05 17:43:35 +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 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
MachOUniversal.h MachO: remove weird ARM/Thumb interface from MachOObjectFile 2016-04-22 23:21:13 +00:00
ModuleSummaryIndexObjectFile.h [ThinLTO] Remove unused/incomplete lazy summary reading support (NFC) 2016-04-22 01:52:00 +00:00
ObjectFile.h 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
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 Thread Expected<...> up from createMachOObjectFile() to allow llvm-objdump to produce a real error message 2016-04-06 22:14:09 +00:00
SymbolSize.h Make computeSymbolSizes never fail. 2015-06-24 19:57:32 +00:00