diff options
author | Philip Herron <herron.philip@googlemail.com> | 2020-05-21 17:53:24 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2020-11-28 21:13:15 +0000 |
commit | d3cb8c3cd9278693db8737614bdc2deaa6b5d3cc (patch) | |
tree | d2a2999a6daa188453f7b21649c608d7c5aa60e7 /gcc/rust/ast/rust-ast.h | |
parent | f641587ed0683d6ff2479f59576f4c95eac2bf61 (diff) | |
download | gcc-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.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; |