Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mcs/ilasm/parser/ChangeLog4
-rw-r--r--mcs/ilasm/parser/ILParser.jay6
2 files changed, 9 insertions, 1 deletions
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,5 +1,9 @@
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
2003-03-13 Jackson Harper <jackson@latitudegeo.com>
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); */