本文整理汇总了C++中object_allocator类的典型用法代码示例。如果您正苦于以下问题:C++ object_allocator类的具体用法?C++ object_allocator怎么用?C++ object_allocator使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了object_allocator类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
void
et_free_tree_force (struct et_node *t)
{
et_occurrences.remove (t->rightmost_occ);
if (t->parent_occ)
et_occurrences.remove (t->parent_occ);
et_nodes.remove (t);
}
示例2: while
void
et_free_tree (struct et_node *t)
{
while (t->son)
et_split (t->son);
if (t->father)
et_split (t);
et_occurrences.remove (t->rightmost_occ);
et_nodes.remove (t);
}
示例3:
/* Create and return pseudo live range with given attributes. */
static lra_live_range_t
create_live_range (int regno, int start, int finish, lra_live_range_t next)
{
lra_live_range_t p = lra_live_range_pool.allocate ();
p->regno = regno;
p->start = start;
p->finish = finish;
p->next = next;
return p;
}
示例4: while
/* Free live range list LR. */
static void
free_live_range_list (lra_live_range_t lr)
{
lra_live_range_t next;
while (lr != NULL)
{
next = lr->next;
lra_live_range_pool.remove (lr);
lr = next;
}
}
示例5:
static void
free_debug_insn_changes (struct value_data *vd, unsigned int regno)
{
struct queued_debug_insn_change *cur, *next;
for (cur = vd->e[regno].debug_insn_changes; cur; cur = next)
{
next = cur->next;
--vd->n_debug_insn_changes;
queued_debug_insn_change_pool.remove (cur);
}
vd->e[regno].debug_insn_changes = NULL;
}