blob: cdad85975fafd86060fc56aa06076819e8fb2e42 [file] [log] [blame]
/* PR/10239 */
void foo ();
void bar ();
void baz ();
enum node_type
{
INITIAL = 0, FREE,
PRECOLORED,
SIMPLIFY, SIMPLIFY_SPILL, SIMPLIFY_FAT, FREEZE, SPILL,
SELECT,
SPILLED, COALESCED, COLORED,
LAST_NODE_TYPE
};
inline void
put_web (enum node_type type)
{
switch (type)
{
case INITIAL:
case FREE:
case FREEZE:
case SPILL:
foo ();
break;
case PRECOLORED:
bar ();
break;
default:
baz ();
}
}
void
reset_lists ()
{
put_web (INITIAL);
}