Mercurial > octave-libgccjit
diff src/pt-fcn-handle.cc @ 8913:35cd375d4bb3
make tree::dup functions const
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 05 Mar 2009 13:50:25 -0500 |
parents | ab87d08d9a1b |
children | eb63fbe60fab |
line wrap: on
line diff
--- a/src/pt-fcn-handle.cc Thu Mar 05 09:37:59 2009 +0100 +++ b/src/pt-fcn-handle.cc Thu Mar 05 13:50:25 2009 -0500 @@ -70,7 +70,7 @@ tree_expression * tree_fcn_handle::dup (symbol_table::scope_id, - symbol_table::context_id) + symbol_table::context_id) const { tree_fcn_handle *new_fh = new tree_fcn_handle (nm, line (), column ()); @@ -162,7 +162,7 @@ #if 0 tree_expression * tree_anon_fcn_handle::dup (symbol_table::scope_id parent_scope, - symbol_table::context_id parent_context) + symbol_table::context_id parent_context) const { tree_parameter_list *param_list = parameter_list (); tree_parameter_list *ret_list = return_list (); @@ -187,7 +187,8 @@ #endif tree_expression * -tree_anon_fcn_handle::dup (symbol_table::scope_id, symbol_table::context_id) +tree_anon_fcn_handle::dup (symbol_table::scope_id, + symbol_table::context_id) const { // Instead of simply duplicating, transform to a tree_constant // object that contains an octave_fcn_handle object with the symbol