aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir/tree/rust-hir.h
diff options
context:
space:
mode:
authorJakub Dupak <dev@jakubdupak.com>2023-10-17 16:02:32 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 19:09:23 +0100
commita45f93039ad201cbdf5d9e0caf4068d39221a220 (patch)
tree495473624cc4ce61d760f299a5ef25e3ae323b88 /gcc/rust/hir/tree/rust-hir.h
parent60a0729b2a0b306c8bb59d2de72f0ca9dfa404e5 (diff)
downloadgcc-a45f93039ad201cbdf5d9e0caf4068d39221a220.zip
gcc-a45f93039ad201cbdf5d9e0caf4068d39221a220.tar.gz
gcc-a45f93039ad201cbdf5d9e0caf4068d39221a220.tar.bz2
gccrs: hir: Rename get_pattern_mappings method
Unify with the name used in Expr to allow convenient template over everything that has mappings. gcc/rust/ChangeLog: * backend/rust-compile-base.cc: Rename method. * backend/rust-compile-expr.cc (sort_tuple_patterns): Rename method. * backend/rust-compile-pattern.cc (CompilePatternCaseLabelExpr::visit): Rename method. (CompilePatternBindings::visit): Rename method. (CompilePatternLet::visit): Rename method. * backend/rust-compile-stmt.cc (CompileStmt::visit): Rename method. * backend/rust-compile-var-decl.h: Rename method. * hir/rust-ast-lower-pattern.cc (ASTLoweringPattern::translate): Rename method. * hir/rust-hir-dump.cc (Dump::visit): Rename method. * hir/tree/rust-hir-path.h: Rename method. * hir/tree/rust-hir-pattern.h: Rename method. * hir/tree/rust-hir.h: Rename method. * typecheck/rust-hir-type-check-pattern.cc (TypeCheckPattern::Resolve): Rename method. (TypeCheckPattern::visit): Rename method. (ClosureParamInfer::visit): Rename method. * typecheck/rust-hir-type-check-stmt.cc (TypeCheckStmt::visit): Rename method. * util/rust-hir-map.cc (Mappings::insert_hir_pattern): Rename method. Signed-off-by: Jakub Dupak <dev@jakubdupak.com>
Diffstat (limited to 'gcc/rust/hir/tree/rust-hir.h')
-rw-r--r--gcc/rust/hir/tree/rust-hir.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/hir/tree/rust-hir.h b/gcc/rust/hir/tree/rust-hir.h
index a5143a76..0f2d522 100644
--- a/gcc/rust/hir/tree/rust-hir.h
+++ b/gcc/rust/hir/tree/rust-hir.h
@@ -420,7 +420,7 @@ public:
virtual void accept_vis (HIRPatternVisitor &vis) = 0;
- virtual const Analysis::NodeMapping &get_pattern_mappings () const = 0;
+ virtual const Analysis::NodeMapping &get_mappings () const = 0;
virtual location_t get_locus () const = 0;