summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorJack Carter <jcarter@mips.com>2012-10-03 21:58:54 +0000
committerJack Carter <jcarter@mips.com>2012-10-03 21:58:54 +0000
commit5b5559d3f306d564d3d57394cb70a69d679649ab (patch)
tree429b45afa64f4090fe87da62475a253f3f0ddc58 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent05c82a42dd501cbcc9f0872635bc252133f9227c (diff)
downloadbcm5719-llvm-5b5559d3f306d564d3d57394cb70a69d679649ab.tar.gz
bcm5719-llvm-5b5559d3f306d564d3d57394cb70a69d679649ab.zip
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. llvm-svn: 165171
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud