From ab3ad535ab45cf79eb4df91e19d430a8f4d1cb27 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Tue, 20 Sep 2022 15:43:29 +0900 Subject: [PATCH] core/iwasm/compilation/debug/dwarf_extractor.cpp: remove dead code (#1507) Remove an unused function, dwarf_get_func_info, which is also seemingly incomplete. --- core/iwasm/compilation/debug/dwarf_extractor.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/core/iwasm/compilation/debug/dwarf_extractor.cpp b/core/iwasm/compilation/debug/dwarf_extractor.cpp index cb30a4f6..d5a1be85 100644 --- a/core/iwasm/compilation/debug/dwarf_extractor.cpp +++ b/core/iwasm/compilation/debug/dwarf_extractor.cpp @@ -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; -} \ No newline at end of file +}