[mips] Merge disassemblers into a single implementation.
authorDaniel Sanders <daniel.sanders@imgtec.com>
Wed, 11 Feb 2015 11:28:56 +0000 (11:28 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Wed, 11 Feb 2015 11:28:56 +0000 (11:28 +0000)
commit7b9135922626f04652da8d8e5312fe9193d891d9
tree97fd8a66b5863c0c739e6c73583352842b3e3441
parentcaba7561ae7fd0f1161ac32b2068d7e5ac9926a5
[mips] Merge disassemblers into a single implementation.

Summary:
Currently we have Mips32 and Mips64 disassemblers and this causes the target
triple to affect the disassembly despite all the relevant information being in
the ELF header. These implementations do not need to be separate.

This patch merges them together such that the appropriate tables are checked
for the subtarget (e.g. Mips64 is checked when GP64 is enabled).

Reviewers: vmedic

Reviewed By: vmedic

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D7498

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228825 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/Disassembler/MipsDisassembler.cpp
test/MC/Disassembler/Mips/mips32r2/valid-mips32r2-le.txt
test/MC/Disassembler/Mips/mips32r2/valid-mips32r2.txt
test/MC/Disassembler/Mips/mips64r2/valid-mips64r2-el.txt
test/MC/Disassembler/Mips/mips64r2/valid-mips64r2.txt