Mercurial > hg > truffle
diff src/share/vm/adlc/filebuff.hpp @ 475:284d0af00d53
6771309: debugging AD files is difficult without #line directives in generated code
Summary: more and better #line and #define directives in the generated code; ADLC itself accepts #line directives
Reviewed-by: never, kvn
author | jrose |
---|---|
date | Tue, 09 Dec 2008 12:41:26 -0800 |
parents | 4d9884b01ba6 |
children | 569b3b226089 |
line wrap: on
line diff
--- a/src/share/vm/adlc/filebuff.hpp Mon Dec 08 17:15:02 2008 -0800 +++ b/src/share/vm/adlc/filebuff.hpp Tue Dec 09 12:41:26 2008 -0800 @@ -68,6 +68,7 @@ // and increments bufeol and filepos to point at the end of that line. char *get_line(void); int linenum() const { return _linenum; } + void set_linenum(int line) { _linenum = line; } // 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()).