This patch moves from using a hard coded number (4)
authorJack Carter <jcarter@mips.com>
Wed, 3 Oct 2012 21:58:54 +0000 (21:58 +0000)
committerJack Carter <jcarter@mips.com>
Wed, 3 Oct 2012 21:58:54 +0000 (21:58 +0000)
commit42faefc11da326f10a4a52d72953318921d9e43d
treeff18fecb1e0dc9ce2f855e4b809dfa9e34cff9ad
parent3c0962878cbc3bd5e3c482d458a242636fbbe140
This patch moves from using a hard coded number (4)
for the number of bytes in a particular instruction
to using
   const MCInstrDesc &Desc = MCII.get(TmpInst.getOpcode());
   Desc.getSize()

This is necessary with the advent of 16 bit instructions with
mips16 and micromips. It is also puts Mips in compliance with
the other targets for getting instruction size.

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