Merging r296105, r296016 and 296111:
authorSimon Dardis <simon.dardis@imgtec.com>
Mon, 24 Apr 2017 09:48:54 +0000 (09:48 +0000)
committerSimon Dardis <simon.dardis@imgtec.com>
Mon, 24 Apr 2017 09:48:54 +0000 (09:48 +0000)
commitf86bf2a7ce0fb8a0e8b5de88c125118f00cca885
tree3c9268e9519b060b1b8eb78b0205139aa1f1cd79
parent7b61abe47c66fd691c58d7b29821fcad3d877b54
Merging r296105, r296016 and 296111:

------------------------------------------------------------------------
r296105 | sdardis | 2017-02-24 10:50:27 +0000 (Fri, 24 Feb 2017) | 13 lines

[mips][mc] Fix a crash when disassembling odd sized sections

Make the MIPS disassembler consistent with the other targets in returning
a Size of zero when the input buffer cannot contain an instruction due
to it's size. Previously it reported the minimum instruction size when
it failed due to the buffer not being big enough for an instruction
causing llvm-objdump to crash when disassembling all sections.

Reviewers: slthakur

Differential Revision: https://reviews.llvm.org/D29984

------------------------------------------------------------------------
------------------------------------------------------------------------
r296106 | sdardis | 2017-02-24 10:51:27 +0000 (Fri, 24 Feb 2017) | 5 lines

[mips][mc] Fix a crash when disassembling odd sized sections

Corresponding test.

------------------------------------------------------------------------
------------------------------------------------------------------------
r296111 | rovka | 2017-02-24 12:47:11 +0000 (Fri, 24 Feb 2017) | 1 line

Fixup r296105 - only run tests on Mips
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_40@301169 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/Disassembler/MipsDisassembler.cpp
test/tools/llvm-objdump/Mips/disassemble-all.test [new file with mode: 0644]
test/tools/llvm-objdump/Mips/lit.local.cfg [new file with mode: 0644]