This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gcjx] Patch: FYI: minor model addition


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 *);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]