aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-backend.h
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-08-03 11:54:54 +0100
committerPhilip Herron <philip.herron@embecosm.com>2022-08-04 15:48:37 +0100
commit94e53f8e55e93da8db3d948c3f16d23b7c4ba7a6 (patch)
tree6a7063460808979f86fa0e4f799bb3c915615a03 /gcc/rust/rust-backend.h
parent2dc902baa1388841096e16e660082a8e79fce17e (diff)
downloadgcc-94e53f8e55e93da8db3d948c3f16d23b7c4ba7a6.zip
gcc-94e53f8e55e93da8db3d948c3f16d23b7c4ba7a6.tar.gz
gcc-94e53f8e55e93da8db3d948c3f16d23b7c4ba7a6.tar.bz2
Refactor indirect_expression from the gcc-backend wrapper
This brings out the indirect expression out of our gcc wrapper, it also just simplifies down to the normal build_indirect_expr_loc calls. Which does not require specifiying the type since we can reuse TREE_TYPE. This also simplifies the address_expression to just address_expr_with_loc and grabs the type from TREE_TYPE as well.
Diffstat (limited to 'gcc/rust/rust-backend.h')
-rw-r--r--gcc/rust/rust-backend.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/gcc/rust/rust-backend.h b/gcc/rust/rust-backend.h
index 6d631a0..f7c0b08 100644
--- a/gcc/rust/rust-backend.h
+++ b/gcc/rust/rust-backend.h
@@ -178,14 +178,6 @@ public:
// Create a reference to a variable.
virtual tree var_expression (Bvariable *var, Location) = 0;
- // Create an expression that indirects through the pointer expression EXPR
- // (i.e., return the expression for *EXPR). KNOWN_VALID is true if the pointer
- // is known to point to a valid memory location. BTYPE is the expected type
- // of the indirected EXPR.
- virtual tree indirect_expression (tree btype, tree expr, bool known_valid,
- Location)
- = 0;
-
// Return an expression for the multi-precision integer VAL in BTYPE.
virtual tree integer_constant_expression (tree btype, mpz_t val) = 0;