aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-expr.h
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2023-04-04 15:49:20 +0100
committerPhilip Herron <philip.herron@embecosm.com>2023-04-05 09:24:55 +0000
commitf83e63a89a030fce62c8de56b3c1e61cec77ef52 (patch)
tree57a9fb7ca2c5cd967d86c78680788a96067ff8b9 /gcc/rust/backend/rust-compile-expr.h
parent4713107dffad79ac0c7863411928b536f90f768a (diff)
downloadgcc-f83e63a89a030fce62c8de56b3c1e61cec77ef52.zip
gcc-f83e63a89a030fce62c8de56b3c1e61cec77ef52.tar.gz
gcc-f83e63a89a030fce62c8de56b3c1e61cec77ef52.tar.bz2
gccrs: refactor resolve_method_address to be inside base class
gcc/rust/ChangeLog: * backend/rust-compile-base.cc (HIRCompileBase::resolve_method_address): moved here * backend/rust-compile-base.h: refactored prototype * backend/rust-compile-expr.cc (CompileExpr::resolve_method_address): refactor * backend/rust-compile-expr.h: likewise Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.h')
-rw-r--r--gcc/rust/backend/rust-compile-expr.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/gcc/rust/backend/rust-compile-expr.h b/gcc/rust/backend/rust-compile-expr.h
index 5f6e54b..0962652 100644
--- a/gcc/rust/backend/rust-compile-expr.h
+++ b/gcc/rust/backend/rust-compile-expr.h
@@ -97,12 +97,6 @@ protected:
TyTy::BaseType *receiver, TyTy::FnType *fntype,
tree receiver_ref, Location expr_locus);
- tree resolve_method_address (TyTy::FnType *fntype, HirId ref,
- TyTy::BaseType *receiver,
- HIR::PathIdentSegment &segment,
- Analysis::NodeMapping expr_mappings,
- Location expr_locus);
-
tree
resolve_operator_overload (Analysis::RustLangItem::ItemType lang_item_type,
HIR::OperatorExprMeta expr, tree lhs, tree rhs,