diff options
author | Craig Topper <craig.topper@sifive.com> | 2023-02-06 21:23:21 -0800 |
---|---|---|
committer | Craig Topper <craig.topper@sifive.com> | 2023-02-06 21:23:21 -0800 |
commit | c7449c1770eef0345c32e2b6ad5344e9a06ed2c5 (patch) | |
tree | 3886cddc7c569d3b35b3d434f564ddb40e5b0a1d /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 6e67928642c25822c101316c5e03bb2a18b56715 (diff) | |
download | llvm-c7449c1770eef0345c32e2b6ad5344e9a06ed2c5.zip llvm-c7449c1770eef0345c32e2b6ad5344e9a06ed2c5.tar.gz llvm-c7449c1770eef0345c32e2b6ad5344e9a06ed2c5.tar.bz2 |
[RISCV] Refactor RISCVDisassembler::getInstruction to remove repeated code. NFC
For 4 byte instructions we were always setting size to 4 eventually. Same
for 2 byte instructions. So do it as soon as we know the from the opcode.
Add a return to the end of the 4 byte code so we don't have to have an else
around the 2 byte code.
Differential Revision: https://reviews.llvm.org/D143445
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions