aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-ast.h
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2020-05-21 17:53:24 +0100
committerPhilip Herron <philip.herron@embecosm.com>2020-11-28 21:13:15 +0000
commitd3cb8c3cd9278693db8737614bdc2deaa6b5d3cc (patch)
treed2a2999a6daa188453f7b21649c608d7c5aa60e7 /gcc/rust/ast/rust-ast.h
parentf641587ed0683d6ff2479f59576f4c95eac2bf61 (diff)
downloadgcc-d3cb8c3cd9278693db8737614bdc2deaa6b5d3cc.zip
gcc-d3cb8c3cd9278693db8737614bdc2deaa6b5d3cc.tar.gz
gcc-d3cb8c3cd9278693db8737614bdc2deaa6b5d3cc.tar.bz2
We need to analyse and store the locals per block for compilation
Diffstat (limited to 'gcc/rust/ast/rust-ast.h')
-rw-r--r--gcc/rust/ast/rust-ast.h4
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;