[PATCH] D105429: [JITLink][RISCV] Initial Support RISCV64 in JITLink

luxufan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 19 01:04:25 PDT 2021


StephenFan added inline comments.


================
Comment at: llvm/lib/ExecutionEngine/JITLink/ELF_riscv.cpp:266
+                            const object::ELFFile<ELFT> &Obj)
+      : ELFLinkGraphBuilder<ELFT>(Obj, Triple("riscv64-unknown-linux"),
+                                  FileName, getELFRISCVRelocationKindName) {}
----------------
jrtc27 wrote:
> This still hard-codes Linux, as well as that it's 64-bit now the class is just ELFLinkGraphBuilder_riscv.
To avoid hard-codes, I add an argument to initialize the triple information.  Is there any better way to avoid hard-codes ? @jrtc27 


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D105429



More information about the llvm-commits mailing list