Skip to content

Commit

Permalink
Add in some code to imcc.y (not used yet) to replace :load and :init …
Browse files Browse the repository at this point in the history
…with :tag. Fix Parrot_pf_subs_by_flag to treat :init and :load together with :tag seamlessly.
  • Loading branch information
Whiteknight committed Jul 26, 2011
1 parent 7fe5102 commit 8229ddd
Show file tree
Hide file tree
Showing 3 changed files with 275 additions and 259 deletions.
18 changes: 16 additions & 2 deletions compilers/imcc/imcc.y
Expand Up @@ -1612,8 +1612,22 @@ sub_proto_list:
;

proto:
LOAD { $$ = P_LOAD; }
| INIT { $$ = P_INIT; }
LOAD {
$$ = P_LOAD;
/*
SymReg * const r = mk_const(imcc, "load", 'S');
add_pcc_flag_str(imcc, imcc->cur_call, r);
$$ = r;
*/
}
| INIT {
$$ = P_INIT;
/*
SymReg * const r = mk_const(imcc, "load", 'S');
add_pcc_flag_str(imcc, imcc->cur_call, r);
$$ = r;
*/
}
| MAIN { $$ = P_MAIN; }
| IMMEDIATE { $$ = P_IMMEDIATE; }
| POSTCOMP { $$ = P_POSTCOMP; }
Expand Down

0 comments on commit 8229ddd

Please sign in to comment.