GCC Middle and Back End API Reference
|
#include <recog.h>
Public Member Functions | |
undo_recog_changes (int) | |
~undo_recog_changes () | |
Static Public Member Functions | |
static bool | is_active () |
Private Attributes | |
int | m_old_num_changes |
Static Private Attributes | |
static int | s_num_changes = 0 |
An RAII class that temporarily undoes part of the current change group. The sequence: { ...; undo_recog_changes undo (NUM); STMTS; } executes STMTS with all the changes numbered NUM and up temporarily reverted. STMTS must not try to add to the current change group. Nested uses are supported, but each nested NUM must be no greater than outer NUMs.
undo_recog_changes::undo_recog_changes | ( | int | num | ) |
References gcc_assert, i, num_changes, s_num_changes, and swap_change().
undo_recog_changes::~undo_recog_changes | ( | ) |
References i, m_old_num_changes, num_changes, s_num_changes, and swap_change().
|
inlinestatic |
References s_num_changes.
Referenced by cancel_changes(), confirm_change_group(), and validate_change_1().
|
private |
Referenced by ~undo_recog_changes().
|
staticprivate |
Referenced by is_active(), undo_recog_changes(), and ~undo_recog_changes().