[Lldb-commits] [lldb] [llvm] [lldb][RISCV] function calls support in lldb expressions (PR #99336)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Tue Sep 10 00:15:13 PDT 2024


================
@@ -274,8 +274,9 @@ void IRExecutionUnit::GetRunnableInfo(Status &error, lldb::addr_t &func_addr,
 
   builder.setEngineKind(llvm::EngineKind::JIT)
       .setErrorStr(&error_string)
-      .setRelocationModel(triple.isOSBinFormatMachO() ? llvm::Reloc::PIC_
-                                                      : llvm::Reloc::Static)
+      .setRelocationModel((triple.isOSBinFormatMachO() || triple.isRISCV64())
----------------
Michael137 wrote:

Should we add a comment here for RISCV?

https://github.com/llvm/llvm-project/pull/99336


More information about the lldb-commits mailing list