From: Jackson Harper Date: Sat, 15 Mar 2003 09:34:06 +0000 (-0000) Subject: * ILParser.jay: Emit instructions that take a single type as a param X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=3618f03441549caa47097c382727aab049804bcf;p=mono.git * ILParser.jay: Emit instructions that take a single type as a param svn path=/trunk/mcs/; revision=12520 --- diff --git a/mcs/ilasm/parser/ChangeLog b/mcs/ilasm/parser/ChangeLog index 51b59acbc54..e7590b81979 100644 --- a/mcs/ilasm/parser/ChangeLog +++ b/mcs/ilasm/parser/ChangeLog @@ -1,3 +1,7 @@ +2003-03-14 Jackson Harper + + * ILParser.jay: Emit instructions that take a single type as a param + 2003-03-14 Jackson Harper * ILParser.jay: Emit instructions that take a single int32 as a param diff --git a/mcs/ilasm/parser/ILParser.jay b/mcs/ilasm/parser/ILParser.jay index 71fcb0506f1..8fd65369c16 100644 --- a/mcs/ilasm/parser/ILParser.jay +++ b/mcs/ilasm/parser/ILParser.jay @@ -1032,7 +1032,11 @@ instr : INSTR_NONE } | INSTR_FIELD type typeSpec DOUBLE_COLON id | INSTR_FIELD type id - | INSTR_TYPE typeSpec + | INSTR_TYPE type_ref + { + TypeRef type_ref = (TypeRef) $2; + codegen.CodeBuffer.TypeInst ((TypeOp) $1, type_ref.Type); + } | INSTR_STRING compQstring { /* currentInstr = new InstrString ((OpCode) $1, $2 as string); */