Skip to content

Commit

Permalink
Reunite dt_cg_subr_speculation() and its comment
Browse files Browse the repository at this point in the history
When patch 5f8c410 "Add support for index() subroutine"
was applied, somehow the new function dt_cg_subr_index() was inserted
between dt_cg_subr_speculation() and the comment block describing (and
immediately preceding) it.  Subsequent patches only increased the
separation.  Move the comment block back to the function.

Signed-off-by: Eugene Loh <eugene.loh@oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>
  • Loading branch information
euloh committed Mar 17, 2022
1 parent 2e1b5da commit 44ed8c9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libdtrace/dt_cg.c
Original file line number Diff line number Diff line change
Expand Up @@ -3374,11 +3374,6 @@ dt_cg_subr_dirname(dt_node_t *dnp, dt_irlist_t *dlp, dt_regset_t *drp)
dt_cg_subr_path_helper(dnp, dlp, drp, "dt_dirname");
}

/*
* Get and return a new speculation ID. These are unallocated entries in the
* specs map, obtained by calling dt_speculation(). Return zero if none is
* available. TODO: add a drop in this case?
*/
static void
dt_cg_subr_index(dt_node_t *dnp, dt_irlist_t *dlp, dt_regset_t *drp)
{
Expand Down Expand Up @@ -3576,6 +3571,11 @@ dt_cg_subr_rindex(dt_node_t *dnp, dt_irlist_t *dlp, dt_regset_t *drp)
TRACE_REGSET(" subr-rindex:End ");
}

/*
* Get and return a new speculation ID. These are unallocated entries in the
* specs map, obtained by calling dt_speculation(). Return zero if none is
* available. TODO: add a drop in this case?
*/
static void
dt_cg_subr_speculation(dt_node_t *dnp, dt_irlist_t *dlp, dt_regset_t *drp)
{
Expand Down

0 comments on commit 44ed8c9

Please sign in to comment.