mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-09 13:16:26 +00:00
parent
16e70f99aa
commit
a16da4f874
|
@ -290,7 +290,7 @@ lldb_function_to_function_dbi(const AOTCompContext *comp_ctx,
|
||||||
{
|
{
|
||||||
SBFunction function(sc.GetFunction());
|
SBFunction function(sc.GetFunction());
|
||||||
const char *function_name = function.GetName();
|
const char *function_name = function.GetName();
|
||||||
const char *link_name = function.GetName();
|
const char *link_name = function.GetMangledName();
|
||||||
SBTypeList function_args = function.GetType().GetFunctionArgumentTypes();
|
SBTypeList function_args = function.GetType().GetFunctionArgumentTypes();
|
||||||
SBType return_type = function.GetType().GetFunctionReturnType();
|
SBType return_type = function.GetType().GetFunctionReturnType();
|
||||||
const size_t num_function_args = function_args.GetSize();
|
const size_t num_function_args = function_args.GetSize();
|
||||||
|
@ -389,8 +389,8 @@ lldb_function_to_function_dbi(const AOTCompContext *comp_ctx,
|
||||||
|
|
||||||
LLVMMetadataRef FunctionMetadata = LLVMDIBuilderCreateFunction(
|
LLVMMetadataRef FunctionMetadata = LLVMDIBuilderCreateFunction(
|
||||||
DIB, File, function_name, strlen(function_name), link_name,
|
DIB, File, function_name, strlen(function_name), link_name,
|
||||||
strlen(link_name), File, line_entry.GetLine(), FunctionTy, true, true,
|
link_name != NULL ? strlen(link_name) : 0, File, line_entry.GetLine(),
|
||||||
line_entry.GetLine(), LLVMDIFlagZero, false);
|
FunctionTy, true, true, line_entry.GetLine(), LLVMDIFlagZero, false);
|
||||||
|
|
||||||
LLVMMetadataReplaceAllUsesWith(ReplaceableFunctionMetadata,
|
LLVMMetadataReplaceAllUsesWith(ReplaceableFunctionMetadata,
|
||||||
FunctionMetadata);
|
FunctionMetadata);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user