aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2023-02-06 21:23:21 -0800
committerCraig Topper <craig.topper@sifive.com>2023-02-06 21:23:21 -0800
commitc7449c1770eef0345c32e2b6ad5344e9a06ed2c5 (patch)
tree3886cddc7c569d3b35b3d434f564ddb40e5b0a1d /flang/lib/Frontend/CompilerInvocation.cpp
parent6e67928642c25822c101316c5e03bb2a18b56715 (diff)
downloadllvm-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