aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-backend.h
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-02-10 17:08:13 +0000
committerPhilip Herron <philip.herron@embecosm.com>2022-02-10 19:28:10 +0000
commitb2aa172ff69591452e3566c105f2a4cd8450eab5 (patch)
treef9ba781f9c6b29fd8d70f1964f7e238d1ade4f77 /gcc/rust/rust-backend.h
parent1b487d72cd2ba46671f5a1bcc20970f2dad1b759 (diff)
downloadgcc-b2aa172ff69591452e3566c105f2a4cd8450eab5.zip
gcc-b2aa172ff69591452e3566c105f2a4cd8450eab5.tar.gz
gcc-b2aa172ff69591452e3566c105f2a4cd8450eab5.tar.bz2
Refactor code to reuse a canonical way to compile functions and constants
This is a big cleanup so all paths that compile functions and constants end up in the same path so we avoid any duplication in how we actually compile a function.
Diffstat (limited to 'gcc/rust/rust-backend.h')
-rw-r--r--gcc/rust/rust-backend.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/gcc/rust/rust-backend.h b/gcc/rust/rust-backend.h
index f7a1ac6..ac856af 100644
--- a/gcc/rust/rust-backend.h
+++ b/gcc/rust/rust-backend.h
@@ -251,10 +251,6 @@ public:
// Return an expression that converts EXPR to TYPE.
virtual tree convert_expression (tree type, tree expr, Location) = 0;
- // Create an expression for the address of a function. This is used to
- // get the address of the code for a function.
- virtual tree function_code_expression (tree, Location) = 0;
-
// Return an expression for the field at INDEX in BSTRUCT.
virtual tree struct_field_expression (tree bstruct, size_t index, Location)
= 0;