aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-expr.h
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2021-11-15 17:54:12 +0000
committerPhilip Herron <philip.herron@embecosm.com>2021-11-16 14:19:22 +0000
commit0f74fe23c6d602c257ba94b2522bd9d6a594609e (patch)
treead89becf15b24cd82ba0dbae9cb03c1a9a4d2727 /gcc/rust/backend/rust-compile-expr.h
parenta7fb60bb626f7b936bf117636db777a5f0df30c9 (diff)
downloadgcc-0f74fe23c6d602c257ba94b2522bd9d6a594609e.zip
gcc-0f74fe23c6d602c257ba94b2522bd9d6a594609e.tar.gz
gcc-0f74fe23c6d602c257ba94b2522bd9d6a594609e.tar.bz2
Refactor operator overloading work to be more reuseable
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.h')
-rw-r--r--gcc/rust/backend/rust-compile-expr.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/rust/backend/rust-compile-expr.h b/gcc/rust/backend/rust-compile-expr.h
index bdcc5b6..7238d45 100644
--- a/gcc/rust/backend/rust-compile-expr.h
+++ b/gcc/rust/backend/rust-compile-expr.h
@@ -1005,6 +1005,12 @@ protected:
Analysis::NodeMapping expr_mappings,
Location expr_locus);
+ Bexpression *
+ resolve_operator_overload (Analysis::RustLangItem::ItemType lang_item_type,
+ HIR::OperatorExpr &expr, Bexpression *lhs,
+ Bexpression *rhs, HIR::Expr *lhs_expr,
+ HIR::Expr *rhs_expr);
+
private:
CompileExpr (Context *ctx)
: HIRCompileBase (ctx), translated (nullptr), capacity_expr (nullptr)