eliminate per-callstack-frame 'parent num' - redundant info

This commit is contained in:
Ryan Fleury
2025-05-14 14:41:13 -07:00
parent 1e53ac29ef
commit 81483f5100
2 changed files with 1 additions and 3 deletions
+1 -2
View File
@@ -3218,7 +3218,6 @@ ctrl_call_stack_from_unwind(Arena *arena, DI_Scope *di_scope, CTRL_Entity *proce
U64 inline_frame_idx = 0;
for(FrameNode *inline_frame = first_inline_frame; inline_frame != 0; inline_frame = inline_frame->next, inline_frame_idx += 1)
{
inline_frame->v.parent_num = frame_count;
inline_frame->v.inline_depth = inline_frame_count - inline_frame_idx;
if(inline_frame == last_inline_frame)
{
@@ -3250,7 +3249,7 @@ ctrl_call_stack_frame_from_unwind_and_inline_depth(CTRL_CallStack *call_stack, U
U64 base_frame_idx = 0;
for(U64 idx = 0; idx < call_stack->count; idx += 1)
{
if(call_stack->frames[idx].parent_num == 0)
if(call_stack->frames[idx].inline_depth == 0)
{
if(base_frame_idx == unwind_count)
{
-1
View File
@@ -245,7 +245,6 @@ struct CTRL_Unwind
typedef struct CTRL_CallStackFrame CTRL_CallStackFrame;
struct CTRL_CallStackFrame
{
U64 parent_num;
U64 unwind_count;
U64 inline_depth;
void *regs;