aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-gcc.cc
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-02-10 15:40:23 +0000
committerPhilip Herron <philip.herron@embecosm.com>2022-02-10 15:40:55 +0000
commit859732e4d167dfe83b29cebc757f21ba2c342f33 (patch)
tree2616a6c1fdc52ae274b836a055e710f19bc59ffb /gcc/rust/rust-gcc.cc
parentf6ba472caf42db1f5f2f98b73afccf448b36c322 (diff)
downloadgcc-859732e4d167dfe83b29cebc757f21ba2c342f33.zip
gcc-859732e4d167dfe83b29cebc757f21ba2c342f33.tar.gz
gcc-859732e4d167dfe83b29cebc757f21ba2c342f33.tar.bz2
Remove AddressTakenContext
We can reuse more C front-end code c_mark_addressable can be used instead of trying to track TREE_ADDRESSABLE as part of type-checking. This also pulls the GCC::Backend::address_expression to be part of the HIRCompileBase class during code-generation.
Diffstat (limited to 'gcc/rust/rust-gcc.cc')
-rw-r--r--gcc/rust/rust-gcc.cc13
1 files changed, 0 insertions, 13 deletions
diff --git a/gcc/rust/rust-gcc.cc b/gcc/rust/rust-gcc.cc
index 62c9d80..d83dd4d 100644
--- a/gcc/rust/rust-gcc.cc
+++ b/gcc/rust/rust-gcc.cc
@@ -231,8 +231,6 @@ public:
tree function_code_expression (tree, Location);
- tree address_expression (tree, Location);
-
tree struct_field_expression (tree, size_t, Location);
tree compound_expression (tree, tree, Location);
@@ -1338,17 +1336,6 @@ Gcc_backend::function_code_expression (tree func, Location location)
return ret;
}
-// Get the address of an expression.
-
-tree
-Gcc_backend::address_expression (tree expr, Location location)
-{
- if (expr == error_mark_node)
- return this->error_expression ();
-
- return build_fold_addr_expr_loc (location.gcc_location (), expr);
-}
-
// Return an expression for the field at INDEX in BSTRUCT.
tree