mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2024-11-26 23:42:05 +00:00
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:
parent
64c0b15c52
commit
ab3ad535ab
|
@ -214,19 +214,6 @@ dwarf_gen_comp_unit_info(AOTCompContext *comp_ctx)
|
||||||
return comp_unit;
|
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
|
static LLVMDWARFTypeEncoding
|
||||||
lldb_get_basic_type_encoding(BasicType basic_type)
|
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);
|
location_info = dwarf_gen_location(comp_ctx, func_ctx, vm_offset);
|
||||||
|
|
||||||
return location_info;
|
return location_info;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user