core/iwasm/compilation/debug/dwarf_extractor.cpp: remove dead code (#1507)

Remove an unused function, dwarf_get_func_info, which is also
seemingly incomplete.
This commit is contained in:
YAMAMOTO Takashi 2022-09-20 15:43:29 +09:00 committed by GitHub
parent 64c0b15c52
commit ab3ad535ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -214,19 +214,6 @@ dwarf_gen_comp_unit_info(AOTCompContext *comp_ctx)
return comp_unit;
}
bool
dwarf_get_func_info(dwar_extractor_handle_t handle, uint64_t offset)
{
dwar_extractor *extractor = TO_EXTACTOR(handle);
auto sbaddr = extractor->target.ResolveFileAddress(offset);
SBSymbolContext sc(sbaddr.GetSymbolContext(eSymbolContextFunction));
if (sc.IsValid()) {
SBFunction function(sc.GetFunction());
if (function.IsValid()) {
}
}
}
static LLVMDWARFTypeEncoding
lldb_get_basic_type_encoding(BasicType basic_type)
{
@ -520,4 +507,4 @@ dwarf_gen_func_ret_location(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx)
location_info = dwarf_gen_location(comp_ctx, func_ctx, vm_offset);
return location_info;
}
}