浏览代码

LLVM 19: Switch to debug records (#3272)

References:
    https://llvm.org/docs/RemoveDIsDebugInfo.html
    https://github.com/llvm/llvm-project/pull/86529
YAMAMOTO Takashi 1 年之前
父节点
当前提交
4806e4e298
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      core/iwasm/compilation/aot_llvm.c

+ 3 - 0
core/iwasm/compilation/aot_llvm.c

@@ -2547,6 +2547,9 @@ aot_create_comp_context(const AOTCompData *comp_data, aot_comp_option_t option)
         aot_set_last_error("create LLVM module failed.");
         aot_set_last_error("create LLVM module failed.");
         goto fail;
         goto fail;
     }
     }
+#if LLVM_VERSION_MAJOR >= 19
+    LLVMSetIsNewDbgInfoFormat(comp_ctx->module, true);
+#endif
 
 
 #if WASM_ENABLE_LINUX_PERF != 0
 #if WASM_ENABLE_LINUX_PERF != 0
     if (wasm_runtime_get_linux_perf()) {
     if (wasm_runtime_get_linux_perf()) {