diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-02-10 17:08:15 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-10 17:08:15 +0000 |
commit | e2823b6747b36362387e5b26e8792f06185d7de8 (patch) | |
tree | a1c1a61fd3031416ca3bc600212cd13e51f727b8 /gcc/rust/backend/rust-compile-base.h | |
parent | f6ba472caf42db1f5f2f98b73afccf448b36c322 (diff) | |
parent | 1b487d72cd2ba46671f5a1bcc20970f2dad1b759 (diff) | |
download | gcc-e2823b6747b36362387e5b26e8792f06185d7de8.zip gcc-e2823b6747b36362387e5b26e8792f06185d7de8.tar.gz gcc-e2823b6747b36362387e5b26e8792f06185d7de8.tar.bz2 |
Merge #917
917: remove tree addressable context during type checking r=philberty a=philberty
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.
Co-authored-by: Philip Herron <philip.herron@embecosm.com>
Diffstat (limited to 'gcc/rust/backend/rust-compile-base.h')
-rw-r--r-- | gcc/rust/backend/rust-compile-base.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/rust/backend/rust-compile-base.h b/gcc/rust/backend/rust-compile-base.h index f318e81..ec75356 100644 --- a/gcc/rust/backend/rust-compile-base.h +++ b/gcc/rust/backend/rust-compile-base.h @@ -77,6 +77,10 @@ protected: const HIR::FunctionQualifiers &qualifiers, const AST::AttrVec &attrs); static void setup_abi_options (tree fndecl, ABI abi); + + static tree address_expression (tree, Location); + + static bool mark_addressable (tree, Location); }; } // namespace Compile |