Replace PPC instruction-size code with MCInstrDesc getSize
authorHal Finkel <hfinkel@anl.gov>
Sun, 2 Feb 2014 06:12:27 +0000 (06:12 +0000)
committerHal Finkel <hfinkel@anl.gov>
Sun, 2 Feb 2014 06:12:27 +0000 (06:12 +0000)
commitc9ac32837df68a5347ef518a351910c708460d67
treeda2b2a0960c5808dd5cc3dfc937f098f81b03988
parenta16c1b55e2aac49c7336f3f54b50bbe85335712e
Replace PPC instruction-size code with MCInstrDesc getSize

As part of the cleanup done to enable the disassembler, the PPC instructions
now have a valid Size description field. This can now be used to replace some
custom logic in a few places to compute instruction sizes.

Patch by David Wiberg!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200623 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/MCTargetDesc/PPCMCCodeEmitter.cpp
lib/Target/PowerPC/PPCInstrInfo.cpp