dbghelp: Get rid of useless symt_normalize_func().
Signed-off-by: Eric Pouech <eric.pouech@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
707a2273ec
commit
cee52d5988
@ -745,8 +745,6 @@ extern struct symt_function*
|
||||
const char* name,
|
||||
ULONG_PTR addr, ULONG_PTR size,
|
||||
struct symt* type) DECLSPEC_HIDDEN;
|
||||
extern BOOL symt_normalize_function(struct module* module,
|
||||
const struct symt_function* func) DECLSPEC_HIDDEN;
|
||||
extern void symt_add_func_line(struct module* module,
|
||||
struct symt_function* func,
|
||||
unsigned source_idx, int line_num,
|
||||
|
@ -1983,7 +1983,6 @@ static struct symt* dwarf2_parse_subprogram(dwarf2_parse_context_t* ctx,
|
||||
symt_add_function_point(ctx->module, subpgm.func, SymTagCustom,
|
||||
&subpgm.frame, NULL);
|
||||
}
|
||||
if (subpgm.func) symt_normalize_function(subpgm.ctx->module, subpgm.func);
|
||||
|
||||
return di->symt;
|
||||
}
|
||||
|
@ -1827,7 +1827,6 @@ static BOOL codeview_snarf(const struct msc_debug_info* msc_dbg, const BYTE* roo
|
||||
}
|
||||
else if (curr_func)
|
||||
{
|
||||
symt_normalize_function(msc_dbg->module, curr_func);
|
||||
curr_func = NULL;
|
||||
}
|
||||
break;
|
||||
@ -2035,8 +2034,6 @@ static BOOL codeview_snarf(const struct msc_debug_info* msc_dbg, const BYTE* roo
|
||||
}
|
||||
}
|
||||
|
||||
if (curr_func) symt_normalize_function(msc_dbg->module, curr_func);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@ -1196,7 +1196,6 @@ static void stabs_finalize_function(struct module* module, struct symt_function*
|
||||
DWORD disp;
|
||||
|
||||
if (!func) return;
|
||||
symt_normalize_function(module, func);
|
||||
/* To define the debug-start of the function, we use the second line number.
|
||||
* Not 100% bullet proof, but better than nothing
|
||||
*/
|
||||
|
@ -470,20 +470,6 @@ struct symt_hierarchy_point* symt_add_function_point(struct module* module,
|
||||
return sym;
|
||||
}
|
||||
|
||||
BOOL symt_normalize_function(struct module* module, const struct symt_function* func)
|
||||
{
|
||||
assert(func);
|
||||
/* We aren't adding any more locals or line numbers to this function.
|
||||
* Free any spare memory that we might have allocated.
|
||||
*/
|
||||
assert(func->symt.tag == SymTagFunction);
|
||||
|
||||
/* EPP vector_pool_normalize(&func->vlines, &module->pool); */
|
||||
/* EPP vector_pool_normalize(&func->vchildren, &module->pool); */
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
struct symt_thunk* symt_new_thunk(struct module* module,
|
||||
struct symt_compiland* compiland,
|
||||
const char* name, THUNK_ORDINAL ord,
|
||||
|
Loading…
x
Reference in New Issue
Block a user