[mips][ias] Fold needsExpansion() and expandInstruction() together. NFC.
authorDaniel Sanders <daniel.sanders@imgtec.com>
Mon, 26 Oct 2015 23:50:00 +0000 (23:50 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Mon, 26 Oct 2015 23:50:00 +0000 (23:50 +0000)
commita2ab9668ec58b76adf6e2c5264217440a9273882
tree6d6a157c59490e0f78cd1586423b83d79a420cac
parentf94a25288bb01a8bbe1e2315dc0aa44ea05f4389
[mips][ias] Fold needsExpansion() and expandInstruction() together. NFC.

Summary:
Previously we maintained two separate switch statements that had to be kept in
sync. This patch merges them into a single switch.

Reviewers: vkalintiris

Subscribers: llvm-commits, dsanders

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251369 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/AsmParser/MipsAsmParser.cpp