diff options
author | Philip Herron <philip.herron@embecosm.com> | 2021-02-25 17:44:42 +0000 |
---|---|---|
committer | Philip Herron <herron.philip@googlemail.com> | 2021-03-03 22:46:24 +0000 |
commit | a886a9c06ed237a2fa8cff9d708f694066b18e66 (patch) | |
tree | 6805a79a9dbecc5d6975e1ace93a91517beb612e /gcc/rust/rust-backend.h | |
parent | e76855ab401d70361cc8c1738d95127b6f45df86 (diff) | |
download | gcc-a886a9c06ed237a2fa8cff9d708f694066b18e66.zip gcc-a886a9c06ed237a2fa8cff9d708f694066b18e66.tar.gz gcc-a886a9c06ed237a2fa8cff9d708f694066b18e66.tar.bz2 |
Add in TyTy support for an initial String Literal
This gives the apropriate reference type over const char *.
Fixes #85
Diffstat (limited to 'gcc/rust/rust-backend.h')
-rw-r--r-- | gcc/rust/rust-backend.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/rust/rust-backend.h b/gcc/rust/rust-backend.h index 183f41a..700a376 100644 --- a/gcc/rust/rust-backend.h +++ b/gcc/rust/rust-backend.h @@ -116,6 +116,9 @@ public: // Get the Host pointer size in bits virtual int get_pointer_size () = 0; + // Get the raw str type const char* + virtual Btype *raw_str_type () = 0; + // Get an unnamed integer type with the given signedness and number // of bits. virtual Btype *integer_type (bool is_unsigned, int bits) = 0; |