aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc/elna-tree.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gcc/elna-tree.cc')
-rw-r--r--gcc/gcc/elna-tree.cc36
1 files changed, 0 insertions, 36 deletions
diff --git a/gcc/gcc/elna-tree.cc b/gcc/gcc/elna-tree.cc
index 0227433..ab7363f 100644
--- a/gcc/gcc/elna-tree.cc
+++ b/gcc/gcc/elna-tree.cc
@@ -53,15 +53,6 @@ namespace elna::gcc
return INTEGRAL_TYPE_P(type) || POINTER_TYPE_P(type) || TREE_CODE(type) == REAL_TYPE;
}
- bool are_compatible_pointers(tree lhs_type, tree rhs)
- {
- gcc_assert(TYPE_P(lhs_type));
- tree rhs_type = TREE_TYPE(rhs);
-
- return (POINTER_TYPE_P(lhs_type) && rhs == elna_pointer_nil_node)
- || (POINTER_TYPE_P(lhs_type) && lhs_type == rhs_type);
- }
-
tree prepare_rvalue(tree rvalue)
{
if (DECL_P(rvalue) && TREE_CODE(TREE_TYPE(rvalue)) == FUNCTION_TYPE)
@@ -74,12 +65,6 @@ namespace elna::gcc
}
}
- bool is_assignable_from(tree assignee, tree assignment)
- {
- return get_qualified_type(TREE_TYPE(assignment), TYPE_UNQUALIFIED) == assignee
- || are_compatible_pointers(assignee, assignment);
- }
-
void append_statement(tree statement_tree)
{
if (!vec_safe_is_empty(f_binding_level->defers))
@@ -187,27 +172,6 @@ namespace elna::gcc
gcc_unreachable();
}
- tree build_binary_operation(bool condition, boot::binary_expression *expression,
- tree_code operator_code, tree left, tree right, tree target_type)
- {
- location_t expression_location = get_location(&expression->position());
- tree left_type = get_qualified_type(TREE_TYPE(left), TYPE_UNQUALIFIED);
- tree right_type = get_qualified_type(TREE_TYPE(right), TYPE_UNQUALIFIED);
-
- if (condition)
- {
- return fold_build2_loc(expression_location, operator_code, target_type, left, right);
- }
- else
- {
- error_at(expression_location,
- "invalid operands of type '%s' and '%s' for operator %s",
- print_type(left_type).c_str(), print_type(right_type).c_str(),
- boot::print_binary_operator(expression->operation()));
- return error_mark_node;
- }
- }
-
tree find_field_by_name(location_t expression_location, tree type, const std::string& field_name)
{
if (type == error_mark_node)