[gcjx] Patch: FYI: minor model addition

Tom Tromey tromey@redhat.com
Wed Oct 12 21:11:00 GMT 2005


I'm checking this in on the gcjx branch.

This adds a couple of methods I needed while implementing array store
checks.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>

	* model/arrayref.hh (model_array_ref::get_array): New method.
	(model_array_ref::get_index): Likewise.

Index: model/arrayref.hh
===================================================================
RCS file: /cvs/gcc/gcc/gcjx/model/Attic/arrayref.hh,v
retrieving revision 1.1.2.1
diff -u -r1.1.2.1 arrayref.hh
--- model/arrayref.hh 13 Jan 2005 03:18:35 -0000 1.1.2.1
+++ model/arrayref.hh 12 Oct 2005 21:09:55 -0000
@@ -1,6 +1,6 @@
 // Array references.
 
-// Copyright (C) 2004 Free Software Foundation, Inc.
+// Copyright (C) 2004, 2005 Free Software Foundation, Inc.
 //
 // This file is part of GCC.
 //
@@ -52,6 +52,16 @@
     index = e;
   }
 
+  model_expression *get_array () const
+  {
+    return array.get ();
+  }
+
+  model_expression *get_index () const
+  {
+    return index.get ();
+  }
+
   void resolve (resolution_scope *);
 
   void visit (visitor *);



More information about the Java-patches mailing list