cp-tree.def (SWITCH_STMT): Add an extra operand.
authorNathan Froyd <froydnj@codesourcery.com>
Thu, 14 Apr 2011 18:42:44 +0000 (18:42 +0000)
committerNathan Froyd <froydnj@gcc.gnu.org>
Thu, 14 Apr 2011 18:42:44 +0000 (18:42 +0000)
commit1f18dbc6a6de7752b6569228c3076715e60c9fc7
treeaab9b46e5f5c409f2bcbeafb4770c9025917ebf6
parent5e60198b61a66d78922ffd5742440ac72c121434
cp-tree.def (SWITCH_STMT): Add an extra operand.

* cp-tree.def (SWITCH_STMT): Add an extra operand.
* cp-objcp-common.c (cp_common_init_ts): Mark it as TS_TYPED.
* cp-tree.h (SWITCH_STMT_SCOPE): Define.
* semantics.c (begin_switch__stmt): Pass scope to build_stmt.
(finish_switch_stmt): Use SWITCH_STMT_SCOPE instead of TREE_CHAIN.

From-SVN: r172440
gcc/cp/ChangeLog
gcc/cp/cp-objcp-common.c
gcc/cp/cp-tree.def
gcc/cp/cp-tree.h
gcc/cp/semantics.c