lex.c (java_init_lex): Define wfl_to_string as gnu.gcj.runtime.StringBuffer unless generating bytecode.

* lex.c (java_init_lex): Define wfl_to_string as
	gnu.gcj.runtime.StringBuffer unless generating bytecode.

From-SVN: r47882
This commit is contained in:
Tom Tromey 2001-12-11 17:59:02 +00:00 committed by Tom Tromey
parent f0451e26f9
commit 34026199b3
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-12-11 Tom Tromey <tromey@redhat.com>
* lex.c (java_init_lex): Define wfl_to_string as
gnu.gcj.runtime.StringBuffer unless generating bytecode.
2001-12-11 Jeff Sturm <jsturm@one-point.com>
* class.c (make_method_value): Use null_pointer_node to

View File

@ -118,7 +118,10 @@ java_init_lex (finput, encoding)
wfl_append = build_expr_wfl (get_identifier ("append"), NULL, 0, 0);
if (!wfl_string_buffer)
wfl_string_buffer =
build_expr_wfl (get_identifier ("java.lang.StringBuffer"), NULL, 0, 0);
build_expr_wfl (get_identifier (flag_emit_class_files
? "java.lang.StringBuffer"
: "gnu.gcj.runtime.StringBuffer"),
NULL, 0, 0);
if (!wfl_to_string)
wfl_to_string = build_expr_wfl (get_identifier ("toString"), NULL, 0, 0);