diff options
author | Philip Herron <philip.herron@embecosm.com> | 2021-07-27 14:33:52 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2021-07-27 14:33:52 +0100 |
commit | 7f8adccb5056152edc4aacf08ce2ed040f076171 (patch) | |
tree | fa41b5f161823fe6b43413370422f25414f8fcaa /gcc/rust/rust-backend.h | |
parent | 2818017d36f5c6279a2372b0a8efbe1f17b3f374 (diff) | |
download | gcc-7f8adccb5056152edc4aacf08ce2ed040f076171.zip gcc-7f8adccb5056152edc4aacf08ce2ed040f076171.tar.gz gcc-7f8adccb5056152edc4aacf08ce2ed040f076171.tar.bz2 |
Add support for varadic extern "c" functions like printf
Varadic functions are only allowed in extern functions as far as I know.
Diffstat (limited to 'gcc/rust/rust-backend.h')
-rw-r--r-- | gcc/rust/rust-backend.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/rust/rust-backend.h b/gcc/rust/rust-backend.h index 1dd4aba..be23fd3 100644 --- a/gcc/rust/rust-backend.h +++ b/gcc/rust/rust-backend.h @@ -163,6 +163,13 @@ public: Btype *result_struct, Location location) = 0; + virtual Btype * + function_type_varadic (const Btyped_identifier &receiver, + const std::vector<Btyped_identifier> ¶meters, + const std::vector<Btyped_identifier> &results, + Btype *result_struct, Location location) + = 0; + virtual Btype *function_ptr_type (Btype *result, const std::vector<Btype *> &praameters, Location location) |