* ILParser.jay: Emit instructions that take a single type as a param
authorJackson Harper <jackson@novell.com>
Sat, 15 Mar 2003 09:34:06 +0000 (09:34 -0000)
committerJackson Harper <jackson@novell.com>
Sat, 15 Mar 2003 09:34:06 +0000 (09:34 -0000)
svn path=/trunk/mcs/; revision=12520

mcs/ilasm/parser/ChangeLog
mcs/ilasm/parser/ILParser.jay

index 51b59acbc54c4f88675c2f5bcc7ce4dae6964ddd..e7590b8197967c67ce1d6db72288c89ee755c86e 100644 (file)
@@ -1,3 +1,7 @@
+2003-03-14 Jackson Harper <jackson@latitudegeo.com>
+
+       * ILParser.jay: Emit instructions that take a single type as a param
+
 2003-03-14 Jackson Harper <jackson@latitudegeo.com>
 
        * ILParser.jay: Emit instructions that take a single int32 as a param
index 71fcb0506f177254f6df674726e341cc1ff813fc..8fd65369c168c6c8ebf1168277ee3aafe6e2d4b5 100644 (file)
@@ -1032,7 +1032,11 @@ instr                   : INSTR_NONE
                                                }\r
                        | INSTR_FIELD type typeSpec DOUBLE_COLON id \r
                        | INSTR_FIELD type id \r
-                       | INSTR_TYPE typeSpec \r
+                       | INSTR_TYPE type_ref\r
+                         {\r
+                               TypeRef type_ref = (TypeRef) $2;\r
+                               codegen.CodeBuffer.TypeInst ((TypeOp) $1, type_ref.Type); \r
+                         }\r
                        | INSTR_STRING compQstring \r
                                {\r
                                /*      currentInstr = new InstrString ((OpCode) $1, $2 as string); */\r