aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-tyty.h
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2021-10-14 12:32:43 +0100
committerPhilip Herron <philip.herron@embecosm.com>2021-10-14 12:32:43 +0100
commitb7bb6a9832958abb076dcd9207c7457a7bec6201 (patch)
treebb556291c23aac3269e67ba4ebe029520d0b35ea /gcc/rust/backend/rust-compile-tyty.h
parent3057d98a4e3fc777b06e51cd678723f5c5b4c898 (diff)
downloadgcc-b7bb6a9832958abb076dcd9207c7457a7bec6201.zip
gcc-b7bb6a9832958abb076dcd9207c7457a7bec6201.tar.gz
gcc-b7bb6a9832958abb076dcd9207c7457a7bec6201.tar.bz2
Add boiler plate for TyTy::ClosureType
This adds all the nesecary boiler plate to introduce the ClosureType. More work is needed to be make this actually useable for type resolution. Addresses #195
Diffstat (limited to 'gcc/rust/backend/rust-compile-tyty.h')
-rw-r--r--gcc/rust/backend/rust-compile-tyty.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/rust/backend/rust-compile-tyty.h b/gcc/rust/backend/rust-compile-tyty.h
index 40b297c..c544a45 100644
--- a/gcc/rust/backend/rust-compile-tyty.h
+++ b/gcc/rust/backend/rust-compile-tyty.h
@@ -239,6 +239,8 @@ public:
void visit (TyTy::DynamicObjectType &) override { gcc_unreachable (); }
+ void visit (TyTy::ClosureType &) override { gcc_unreachable (); }
+
private:
TyTyCompile (::Backend *backend)
: backend (backend), translated (nullptr),