[PATCH] D142879: [RISCV] Emit relocation for uleb128

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 30 20:41:58 PST 2023


craig.topper added inline comments.


================
Comment at: llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.cpp:295
+      DF->getContents().size(), A,
+      static_cast<MCFixupKind>(RISCV::fixup_riscv_set_uleb128), Loc));
+  DF->getFixups().push_back(MCFixup::create(
----------------
Looks like most other places in RISCV use `MCFixupKind(RISCV::fixup_riscv_set_uleb128)` instead of the static_cast.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D142879/new/

https://reviews.llvm.org/D142879



More information about the llvm-commits mailing list