aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-backend.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/rust-backend.h')
-rw-r--r--gcc/rust/rust-backend.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/rust/rust-backend.h b/gcc/rust/rust-backend.h
index e71d81e..35271b6 100644
--- a/gcc/rust/rust-backend.h
+++ b/gcc/rust/rust-backend.h
@@ -109,6 +109,9 @@ public:
// unsafe.Pointer is represented as *void.
virtual Btype *void_type () = 0;
+ // get unit-type
+ virtual Btype *unit_type () = 0;
+
// Get the unnamed boolean type.
virtual Btype *bool_type () = 0;