[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)
commita19216c8f4b26cb98aae5ada5c44c73bd3bf350e
treeb4e3963c576c990223dccb9c4c2500e4df6cc0a3
parent333fc18ca65bc0ae06a41cf5309cd2b2bbed03f5
[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

llvm-svn: 228825
llvm/lib/Target/Mips/Disassembler/MipsDisassembler.cpp
llvm/test/MC/Disassembler/Mips/mips32r2/valid-mips32r2-le.txt
llvm/test/MC/Disassembler/Mips/mips32r2/valid-mips32r2.txt
llvm/test/MC/Disassembler/Mips/mips64r2/valid-mips64r2-el.txt
llvm/test/MC/Disassembler/Mips/mips64r2/valid-mips64r2.txt