[x86] Hoist the logic for extracting the relevant bits of information
authorChandler Carruth <chandlerc@gmail.com>
Wed, 24 Sep 2014 02:24:41 +0000 (02:24 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 24 Sep 2014 02:24:41 +0000 (02:24 +0000)
commit7e0f903c6cb7c9238ac60b0d579180e173ecc6f4
tree83c993d1f2a7450a8abfe9e561b9d5980096f864
parent59da3f04ca7b8a98930df45369816dceb1e39fa7
[x86] Hoist the logic for extracting the relevant bits of information
from the MachineInstr into the caller which is already doing a switch
over the instruction.

This will make it more clear how to compute different operands to feed
the comment selection for example.

Also, in a drive-by-fix, don't append an empty comment string (which is
a no-op ultimately).

No functionality changed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218361 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86MCInstLower.cpp