aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-gcc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/rust-gcc.cc')
-rw-r--r--gcc/rust/rust-gcc.cc14
1 files changed, 0 insertions, 14 deletions
diff --git a/gcc/rust/rust-gcc.cc b/gcc/rust/rust-gcc.cc
index 86a4106..b648365 100644
--- a/gcc/rust/rust-gcc.cc
+++ b/gcc/rust/rust-gcc.cc
@@ -229,8 +229,6 @@ public:
tree convert_expression (tree type, tree expr, Location);
- tree function_code_expression (tree, Location);
-
tree struct_field_expression (tree, size_t, Location);
tree compound_expression (tree, tree, Location);
@@ -1305,18 +1303,6 @@ Gcc_backend::convert_expression (tree type_tree, tree expr_tree,
return ret;
}
-// Get the address of a function.
-
-tree
-Gcc_backend::function_code_expression (tree func, Location location)
-{
- if (func == error_mark_node)
- return this->error_expression ();
-
- tree ret = build_fold_addr_expr_loc (location.gcc_location (), func);
- return ret;
-}
-
// Return an expression for the field at INDEX in BSTRUCT.
tree