[PATCH] D123675: [RISCV][NFC] Use addExpr() instead of createExpr()
Wang Pengcheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 13 19:48:49 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd0828c5af9ce: [RISCV][NFC] Use addExpr() instead of createExpr() (authored by pcwang-thead).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D123675/new/
https://reviews.llvm.org/D123675
Files:
llvm/lib/Target/RISCV/MCTargetDesc/RISCVMCCodeEmitter.cpp
Index: llvm/lib/Target/RISCV/MCTargetDesc/RISCVMCCodeEmitter.cpp
===================================================================
--- llvm/lib/Target/RISCV/MCTargetDesc/RISCVMCCodeEmitter.cpp
+++ llvm/lib/Target/RISCV/MCTargetDesc/RISCVMCCodeEmitter.cpp
@@ -132,9 +132,7 @@
const MCExpr *CallExpr = Func.getExpr();
// Emit AUIPC Ra, Func with R_RISCV_CALL relocation type.
- TmpInst = MCInstBuilder(RISCV::AUIPC)
- .addReg(Ra)
- .addOperand(MCOperand::createExpr(CallExpr));
+ TmpInst = MCInstBuilder(RISCV::AUIPC).addReg(Ra).addExpr(CallExpr);
Binary = getBinaryCodeForInstr(TmpInst, Fixups, STI);
support::endian::write(OS, Binary, support::little);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123675.422726.patch
Type: text/x-patch
Size: 703 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220414/31d037e7/attachment.bin>
More information about the llvm-commits
mailing list