diff options
author | Philip Herron <phil@nebuloninc.com> | 2020-05-16 19:09:37 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2020-11-28 19:11:46 +0000 |
commit | e62655562feb013d4f0e8c0823e27acb3a62101a (patch) | |
tree | ce8badc5202c9dd49dcd14ff4ce7c1e8dae92609 /gcc | |
parent | ae88a9f49e8e20bad0c36ab04143ca051c2db4d2 (diff) | |
download | gcc-e62655562feb013d4f0e8c0823e27acb3a62101a.zip gcc-e62655562feb013d4f0e8c0823e27acb3a62101a.tar.gz gcc-e62655562feb013d4f0e8c0823e27acb3a62101a.tar.bz2 |
need public access on the Literal from LiteralExpr
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/ast/rust-expr.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/rust/ast/rust-expr.h b/gcc/rust/ast/rust-expr.h index ce78bd7..2362904 100644 --- a/gcc/rust/ast/rust-expr.h +++ b/gcc/rust/ast/rust-expr.h @@ -74,11 +74,12 @@ class LiteralExpr : public ExprWithoutBlock ::std::string value_as_string; LitType type;*/ // moved to Literal + +public: Literal literal; Location locus; -public: ::std::string as_string () const { return literal.as_string (); } inline Literal::LitType get_lit_type () const |