diff options
author | Owen Avery <powerboat9.gamer@gmail.com> | 2023-07-10 15:56:31 -0400 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:55:56 +0100 |
commit | df1da36415bb15919551f1b813443057263fc187 (patch) | |
tree | 13b5e3a55d14afcc6a3b24b20a77c6e093c2e761 /gcc/rust/hir/tree/rust-hir.h | |
parent | d991a3f15f64d3a16cce0866508bb76d87b9627c (diff) | |
download | gcc-df1da36415bb15919551f1b813443057263fc187.zip gcc-df1da36415bb15919551f1b813443057263fc187.tar.gz gcc-df1da36415bb15919551f1b813443057263fc187.tar.bz2 |
gccrs: Replace some more usages of Location with location_t
gcc/rust/ChangeLog:
* ast/rust-ast.h: Replace Location with location_t.
* ast/rust-expr.h: Likewise.
* ast/rust-item.h: Likewise.
* ast/rust-macro.h: Likewise.
* ast/rust-path.h: Likewise.
* ast/rust-pattern.h: Likewise.
* ast/rust-stmt.h: Likewise.
* ast/rust-type.h: Likewise.
* hir/rust-ast-lower-base.h: Likewise.
* hir/tree/rust-hir-expr.h: Likewise.
* hir/tree/rust-hir-item.h: Likewise.
* hir/tree/rust-hir-path.h: Likewise.
* hir/tree/rust-hir-pattern.h: Likewise.
* hir/tree/rust-hir-stmt.h: Likewise.
* hir/tree/rust-hir-type.h: Likewise.
* hir/tree/rust-hir.h: Likewise.
* lex/rust-token.h: Likewise.
* resolve/rust-ast-resolve-pattern.h: Likewise.
* typecheck/rust-hir-trait-reference.h: Likewise.
* typecheck/rust-tyty-bounds.h: Likewise.
* typecheck/rust-tyty-call.h: Likewise.
* typecheck/rust-tyty-subst.h: Likewise.
* typecheck/rust-tyty-util.h: Likewise.
* typecheck/rust-tyty.h: Likewise.
Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc/rust/hir/tree/rust-hir.h')
-rw-r--r-- | gcc/rust/hir/tree/rust-hir.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gcc/rust/hir/tree/rust-hir.h b/gcc/rust/hir/tree/rust-hir.h index c5a027a..aac4b2d 100644 --- a/gcc/rust/hir/tree/rust-hir.h +++ b/gcc/rust/hir/tree/rust-hir.h @@ -180,7 +180,7 @@ public: virtual void accept_vis (HIRStmtVisitor &vis) = 0; - virtual Location get_locus () const = 0; + virtual location_t get_locus () const = 0; virtual bool is_unit_check_needed () const { return false; } @@ -320,7 +320,7 @@ public: virtual ~Expr () {} - virtual Location get_locus () const = 0; + virtual location_t get_locus () const = 0; const Analysis::NodeMapping &get_mappings () const { return mappings; } @@ -422,7 +422,7 @@ public: virtual Analysis::NodeMapping get_pattern_mappings () const = 0; - virtual Location get_locus () const = 0; + virtual location_t get_locus () const = 0; virtual PatternType get_pattern_type () const = 0; @@ -464,7 +464,7 @@ public: virtual void accept_vis (HIRTypeVisitor &vis) = 0; virtual Analysis::NodeMapping get_mappings () const { return mappings; } - virtual Location get_locus () const { return locus; } + virtual location_t get_locus () const { return locus; } protected: Type (Analysis::NodeMapping mappings, location_t locus) @@ -529,7 +529,7 @@ public: virtual Analysis::NodeMapping get_mappings () const = 0; - virtual Location get_locus () const = 0; + virtual location_t get_locus () const = 0; virtual BoundType get_bound_type () const = 0; @@ -579,7 +579,7 @@ public: return lifetime_type; } - Location get_locus () const override final { return locus; } + location_t get_locus () const override final { return locus; } Analysis::NodeMapping get_mappings () const override final { @@ -621,7 +621,7 @@ public: virtual std::string as_string () const = 0; - virtual Location get_locus () const = 0; + virtual location_t get_locus () const = 0; Analysis::NodeMapping get_mappings () const { return mappings; } @@ -709,7 +709,7 @@ public: void accept_vis (HIRFullVisitor &vis) override; - Location get_locus () const override final { return locus; } + location_t get_locus () const override final { return locus; } protected: /* Use covariance to implement clone function as returning this object rather @@ -746,7 +746,7 @@ public: void accept_vis (HIRFullVisitor &vis) override final; - Location get_locus () const override final { return locus; }; + location_t get_locus () const override final { return locus; }; bool has_default_expression () { return default_expression != nullptr; } @@ -850,7 +850,7 @@ public: virtual Analysis::NodeMapping get_impl_mappings () const = 0; - virtual Location get_locus () const = 0; + virtual location_t get_locus () const = 0; virtual ImplItemType get_impl_item_type () const = 0; |