diff options
author | Philip Herron <philip.herron@embecosm.com> | 2020-12-10 20:02:03 +0000 |
---|---|---|
committer | Philip Herron <herron.philip@googlemail.com> | 2020-12-17 17:23:46 +0000 |
commit | 4fb0ab7e635c65318aadf958e0e1303f3435c4e5 (patch) | |
tree | b1472ad8c7c1d23686231a1bf0a697db4c2aef92 /gcc/rust/ast/rust-expr.h | |
parent | 2cfc6276dadc54aea9f8ce2a8cfefaee456f380e (diff) | |
download | gcc-4fb0ab7e635c65318aadf958e0e1303f3435c4e5.zip gcc-4fb0ab7e635c65318aadf958e0e1303f3435c4e5.tar.gz gcc-4fb0ab7e635c65318aadf958e0e1303f3435c4e5.tar.bz2 |
This sets up a name resolution framework trying to follow rust-dev guide
We can use the NodeId from the AST to generate apropriate mappings for all
names and types. Ribs are the scopes for names being instansiated, and
reference to defintion tables allows all names to be resolved to NodeId's.
Later on NodeIds will map over to HIR ids allowing for type resolution.
Diffstat (limited to 'gcc/rust/ast/rust-expr.h')
-rw-r--r-- | gcc/rust/ast/rust-expr.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/gcc/rust/ast/rust-expr.h b/gcc/rust/ast/rust-expr.h index 864ee1d..de011c1 100644 --- a/gcc/rust/ast/rust-expr.h +++ b/gcc/rust/ast/rust-expr.h @@ -2338,11 +2338,6 @@ public: } } -protected: - /* Use covariance to implement clone function as returning this object rather - * than base */ - CallExpr *clone_expr_impl () const override { return new CallExpr (*this); } - // TODO: this mutable getter seems really dodgy. Think up better way. const std::vector<std::unique_ptr<Expr> > &get_params () const { |