Browse Source

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

Remove an unused function, dwarf_get_func_info, which is also
seemingly incomplete.
YAMAMOTO Takashi 3 years ago
parent
commit
ab3ad535ab
1 changed files with 1 additions and 14 deletions
  1. 1 14
      core/iwasm/compilation/debug/dwarf_extractor.cpp

+ 1 - 14
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;
-}
+}