summaryrefslogtreecommitdiff
path: root/src/ielr.c
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2018-09-27 07:01:42 +0200
committerAkim Demaille <akim.demaille@gmail.com>2018-09-30 14:19:53 +0200
commitf84a8e96d14c1a778197bf0b2e4505cb4a79449b (patch)
tree8d8723b9c60d74649d33cb75c63c906aef59ec5d /src/ielr.c
parent4247df921b0d16ef5cfe85fda38fef6a61b2a85b (diff)
downloadbison-f84a8e96d14c1a778197bf0b2e4505cb4a79449b.tar.gz
gnulib: move timevar to it
* lib/timevar.c, lib/timevar.h, m4/timevar.m4: Remove. * gnulib: Update. * configure.ac: Adjust. * lib/timevar.def: Use lower case for the timevvars. Adjust dependencies.
Diffstat (limited to 'src/ielr.c')
-rw-r--r--src/ielr.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/ielr.c b/src/ielr.c
index 43763567..5eb7d312 100644
--- a/src/ielr.c
+++ b/src/ielr.c
@@ -929,7 +929,7 @@ ielr_compute_state (bitsetv follow_kernel_items, bitsetv always_follows,
* compatibility or, if <tt>annotation_lists = NULL</tt>, the canonical
* LR(1) state compatibility test was used.
* - If <tt>annotation_lists = NULL</tt>, reduction lookahead sets were
- * computed in all states. TV_IELR_PHASE4 was pushed while they were
+ * computed in all states. tv_ielr_phase4 was pushed while they were
* computed from item lookahead sets.
*/
static void
@@ -1004,7 +1004,7 @@ ielr_split_states (bitsetv follow_kernel_items, bitsetv always_follows,
lookahead sets. */
if (!annotation_lists)
{
- timevar_push (TV_IELR_PHASE4);
+ timevar_push (tv_ielr_phase4);
initialize_LA ();
for (state_list *node = first_state; node; node = node->next)
if (!node->state->consistent)
@@ -1037,7 +1037,7 @@ ielr_split_states (bitsetv follow_kernel_items, bitsetv always_follows,
}
}
}
- timevar_pop (TV_IELR_PHASE4);
+ timevar_pop (tv_ielr_phase4);
}
/* Free state list. */
@@ -1080,7 +1080,7 @@ ielr (void)
}
/* Phase 0: LALR(1). */
- timevar_push (TV_LALR);
+ timevar_push (tv_lalr);
if (lr_type == LR_TYPE__CANONICAL_LR)
set_goto_map ();
else
@@ -1088,10 +1088,10 @@ ielr (void)
if (lr_type == LR_TYPE__LALR)
{
bitsetv_free (goto_follows);
- timevar_pop (TV_LALR);
+ timevar_pop (tv_lalr);
return;
}
- timevar_pop (TV_LALR);
+ timevar_pop (tv_lalr);
{
bitsetv follow_kernel_items;
@@ -1104,14 +1104,14 @@ ielr (void)
{
/* Phase 1: Compute Auxiliary Tables. */
state ***predecessors;
- timevar_push (TV_IELR_PHASE1);
+ timevar_push (tv_ielr_phase1);
ielr_compute_auxiliary_tables (
&follow_kernel_items, &always_follows,
lr_type == LR_TYPE__CANONICAL_LR ? NULL : &predecessors);
- timevar_pop (TV_IELR_PHASE1);
+ timevar_pop (tv_ielr_phase1);
/* Phase 2: Compute Annotations. */
- timevar_push (TV_IELR_PHASE2);
+ timevar_push (tv_ielr_phase2);
if (lr_type != LR_TYPE__CANONICAL_LR)
{
obstack_init (&annotations_obstack);
@@ -1125,11 +1125,11 @@ ielr (void)
bitsetv_free (goto_follows);
lalr_free ();
}
- timevar_pop (TV_IELR_PHASE2);
+ timevar_pop (tv_ielr_phase2);
}
/* Phase 3: Split States. */
- timevar_push (TV_IELR_PHASE3);
+ timevar_push (tv_ielr_phase3);
{
state_number nstates_lr0 = nstates;
ielr_split_states (follow_kernel_items, always_follows,
@@ -1144,11 +1144,11 @@ ielr (void)
free (annotation_lists);
bitsetv_free (follow_kernel_items);
bitsetv_free (always_follows);
- timevar_pop (TV_IELR_PHASE3);
+ timevar_pop (tv_ielr_phase3);
}
/* Phase 4: Compute Reduction Lookaheads. */
- timevar_push (TV_IELR_PHASE4);
+ timevar_push (tv_ielr_phase4);
free (goto_map);
free (from_state);
free (to_state);
@@ -1163,5 +1163,5 @@ ielr (void)
lalr ();
bitsetv_free (goto_follows);
}
- timevar_pop (TV_IELR_PHASE4);
+ timevar_pop (tv_ielr_phase4);
}