diff options
Diffstat (limited to 'gcc/rust/ast/rust-ast.h')
-rw-r--r-- | gcc/rust/ast/rust-ast.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-ast.h b/gcc/rust/ast/rust-ast.h index 7e85fb3..9ad2c4c 100644 --- a/gcc/rust/ast/rust-ast.h +++ b/gcc/rust/ast/rust-ast.h @@ -804,6 +804,10 @@ public: virtual void accept_vis (ASTVisitor &vis) = 0; + // HACK: slow way of getting location from base expression through virtual + // methods. + virtual Location get_locus_slow () const { return Location (); } + protected: // Clone function implementation as pure virtual method virtual Stmt *clone_stmt_impl () const = 0; |