hotspot/src/share/vm/adlc/filebuff.hpp
changeset 1495 128fe18951ed
parent 775 d9c9b9cd55fb
child 1623 a0dd9009e992
child 1662 76a93a5fb765
--- a/hotspot/src/share/vm/adlc/filebuff.hpp	Tue Oct 21 11:23:52 2008 -0700
+++ b/hotspot/src/share/vm/adlc/filebuff.hpp	Tue Oct 28 09:31:30 2008 -0700
@@ -51,6 +51,7 @@
 
   int   _err;                   // Error flag for file seek/read operations
   long  _filepos;               // Current offset from start of file
+  int   _linenum;
 
   ArchDesc& _AD;                // Reference to Architecture Description
 
@@ -66,6 +67,7 @@
   // This returns a pointer to the start of the current line in the buffer,
   // and increments bufeol and filepos to point at the end of that line.
   char *get_line(void);
+  int linenum() const { return _linenum; }
 
   // This converts a pointer into the buffer to a file offset.  It only works
   // when the pointer is valid (i.e. just obtained from getline()).