Raw versions of if and switch.
authorEdward Z. Yang <ezyang@mit.edu>
Fri, 15 Apr 2011 15:43:41 +0000 (16:43 +0100)
committerEdward Z. Yang <ezyang@mit.edu>
Tue, 26 Apr 2011 15:15:07 +0000 (16:15 +0100)
commit1df9e42c4f9463b5bdef24c908d0a7ebd579b30c
tree2d57e8eb4566961289a7e349d9a2135d01747253
parent93b6e53272695a66d97bd2672dd366797176d5c5
Raw versions of if and switch.

This makes the following statements valid C--, which uses the
block ID directly rather than generating an anonymous block:

    if (expr) goto foo;
    switch expr {
        case 0: goto foo;
        case 1: goto bar;
    }

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
compiler/cmm/CmmParse.y