[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


================
@@ -1441,6 +1443,26 @@ lldb_private::Status ClangExpressionParser::DoPrepareForExecution(
     custom_passes.EarlyPasses->run(*llvm_module_up);
   }
 
+  std::unique_ptr<llvm::legacy::PassManager> arch_passes(nullptr);
+  if (lldb::TargetSP target_sp = exe_ctx.GetTargetSP()) {
+    Architecture *arch = target_sp->GetArchitecturePlugin();
+    if (arch) {
----------------
Michael137 wrote:

no need for the braces here

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


More information about the lldb-commits mailing list