Mercurial > octave-libgccjit
comparison src/pt-binop.h @ 8913:35cd375d4bb3
make tree::dup functions const
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 05 Mar 2009 13:50:25 -0500 |
parents | 73c4516fae10 |
children | eb63fbe60fab |
comparison
equal
deleted
inserted
replaced
8912:57c3155754d6 | 8913:35cd375d4bb3 |
---|---|
80 | 80 |
81 tree_expression *lhs (void) { return op_lhs; } | 81 tree_expression *lhs (void) { return op_lhs; } |
82 tree_expression *rhs (void) { return op_rhs; } | 82 tree_expression *rhs (void) { return op_rhs; } |
83 | 83 |
84 tree_expression *dup (symbol_table::scope_id scope, | 84 tree_expression *dup (symbol_table::scope_id scope, |
85 symbol_table::context_id context); | 85 symbol_table::context_id context) const; |
86 | 86 |
87 void accept (tree_walker& tw); | 87 void accept (tree_walker& tw); |
88 | 88 |
89 protected: | 89 protected: |
90 | 90 |
138 std::string oper (void) const; | 138 std::string oper (void) const; |
139 | 139 |
140 type op_type (void) const { return etype; } | 140 type op_type (void) const { return etype; } |
141 | 141 |
142 tree_expression *dup (symbol_table::scope_id scope, | 142 tree_expression *dup (symbol_table::scope_id scope, |
143 symbol_table::context_id context); | 143 symbol_table::context_id context) const; |
144 | 144 |
145 private: | 145 private: |
146 | 146 |
147 // The type of the expression. | 147 // The type of the expression. |
148 type etype; | 148 type etype; |