commit | 42faefc11da326f10a4a52d72953318921d9e43d | [log] [tgz] |
---|---|---|
author | Jack Carter <jcarter@mips.com> | Wed Oct 03 21:58:54 2012 +0000 |
committer | Jack Carter <jcarter@mips.com> | Wed Oct 03 21:58:54 2012 +0000 |
tree | ff18fecb1e0dc9ce2f855e4b809dfa9e34cff9ad | |
parent | 3c0962878cbc3bd5e3c482d458a242636fbbe140 [diff] |
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