Author: raja
Date: 2007-03-30 07:30:36 -0500 (Fri, 30 Mar 2007)
New Revision: 75188

Modified:
   trunk/mcs/mcs/ChangeLog
   trunk/mcs/mcs/flowanalysis.cs
Log:
Prepare to kill 'Reachability'
* flowanalysis.cs (UsageVector): Remove 'Reachability' from
argument of constructor.


Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog     2007-03-30 12:25:06 UTC (rev 75187)
+++ trunk/mcs/mcs/ChangeLog     2007-03-30 12:30:36 UTC (rev 75188)
@@ -1,3 +1,9 @@
+2007-03-30  Raja R Harinath  <[EMAIL PROTECTED]>
+
+       Prepare to kill 'Reachability'
+       * flowanalysis.cs (UsageVector): Remove 'Reachability' from
+       argument of constructor.
+
 2007-03-29  Raja R Harinath  <[EMAIL PROTECTED]>
 
        Prepare to kill 'Reachability'

Modified: trunk/mcs/mcs/flowanalysis.cs
===================================================================
--- trunk/mcs/mcs/flowanalysis.cs       2007-03-30 12:25:06 UTC (rev 75187)
+++ trunk/mcs/mcs/flowanalysis.cs       2007-03-30 12:30:36 UTC (rev 75188)
@@ -250,14 +250,17 @@
                                : this (type, parent, block, loc, 
parent.CountParameters, parent.CountLocals)
                        { }
 
-                       private UsageVector (MyBitVector parameters, 
MyBitVector locals, Reachability reachability, Block block, Location loc)
+                       private UsageVector (MyBitVector parameters, 
MyBitVector locals, bool is_unreachable, Block block, Location loc)
                        {
                                this.Type = SiblingType.Block;
                                this.Location = loc;
                                this.Block = block;
 
-                               this.reachability = reachability;
-                               this.is_unreachable = 
reachability.IsUnreachable;
+                               this.is_unreachable = is_unreachable;
+                               this.reachability = Reachability.Always ();
+                               if (is_unreachable)
+                                       this.reachability.SetBarrier ();
+
                                this.parameters = parameters;
                                this.locals = locals;
 
@@ -367,7 +370,7 @@
                                        }
                                }
 
-                               return new UsageVector (parameters, locals, 
reachability, null, loc);
+                               return new UsageVector (parameters, locals, 
is_unreachable, null, loc);
                        }
 
                        // <summary>

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to