2003-04-07 Martin Baulig <martin@ximian.com>
authorMartin Baulig <martin@novell.com>
Mon, 7 Apr 2003 16:59:03 +0000 (16:59 -0000)
committerMartin Baulig <martin@novell.com>
Mon, 7 Apr 2003 16:59:03 +0000 (16:59 -0000)
* ecore.cs (Expression.ResolveBoolean): Don't call ec.Mark().

* codegen.cs (EmitContext.EmitTopBlock): Don't call Mark() on the
location.  [FIXME: The location argument which gets passed to this
method is sometimes wrong!]

svn path=/trunk/mcs/; revision=13283

mcs/mcs/codegen.cs
mcs/mcs/ecore.cs

index 2422bc660b17439f4a4554eaaba761741a096a71..238675e340092cbc43dc6a2e789fd7580f8ad52f 100755 (executable)
@@ -405,11 +405,6 @@ namespace Mono.CSharp {
                {
                        bool has_ret = false;
 
-//                     Console.WriteLine ("Emitting: " + loc);
-
-                       if (CodeGen.SymbolWriter != null)
-                               Mark (loc);
-
                        if (block != null){
                                try {
                                int errors = Report.Errors;
index b7a9ba5b5d01fc3f62797086895295827206ddce..f9785a04a7de28cb5349852a3dfe204d2fe2da37 100755 (executable)
@@ -1555,8 +1555,6 @@ namespace Mono.CSharp {
                        } else
                                e = converted;
 
-                       ec.Mark (loc);
-
                        return e;
                }