[corlib] Fix tests for watchOS. (#3131)
[mono.git] / mcs / ilasm / codegen / TryBlock.cs
index 2a03ce89093972b725a456cccc75d8a786479a57..9ec09d7a23b0c7ef616245bdb18fb5e2f0c7bc72 100644 (file)
@@ -18,7 +18,8 @@ namespace Mono.ILASM {
                 private HandlerBlock block;
                 private ArrayList clause_list;
 
-                public TryBlock (HandlerBlock block)
+                public TryBlock (HandlerBlock block, Location loc)
+                       : base (loc)
                 {
                        this.block = block;
                        clause_list = new ArrayList ();
@@ -29,8 +30,8 @@ namespace Mono.ILASM {
                         clause_list.Add (clause);
                 }
 
-                public void Emit (CodeGen code_gen, MethodDef meth,
-                                 PEAPI.CILInstructions cil)
+                public override void Emit (CodeGen code_gen, MethodDef meth,
+                                          PEAPI.CILInstructions cil)
                 {
                         PEAPI.CILLabel from = block.GetFromLabel (code_gen, meth);
                         PEAPI.CILLabel to = block.GetToLabel (code_gen, meth);