diff options
author | Tom Tromey <tom@tromey.com> | 2021-03-08 07:27:57 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2021-03-08 07:28:30 -0700 |
commit | e967770468cd029b0cf0da4099eea40106aa16a3 (patch) | |
tree | e3c150b92e34cb2128be14653eede14e940a045b /gdb/c-exp.h | |
parent | f403a4e4a5d6413cf58f7a9ad004b1086fd2254a (diff) | |
download | gdb-e967770468cd029b0cf0da4099eea40106aa16a3.zip gdb-e967770468cd029b0cf0da4099eea40106aa16a3.tar.gz gdb-e967770468cd029b0cf0da4099eea40106aa16a3.tar.bz2 |
Introduce opencl_cast_type_operation
This adds class opencl_cast_type_operation, which implements
UNOP_CAST_TYPE for OpenCL.
gdb/ChangeLog
2021-03-08 Tom Tromey <tom@tromey.com>
* opencl-lang.c (opencl_value_cast): No longer static.
* c-exp.h (opencl_cast_type_operation): New typedef.
Diffstat (limited to 'gdb/c-exp.h')
-rw-r--r-- | gdb/c-exp.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/c-exp.h b/gdb/c-exp.h index 2d224c8..68efa62 100644 --- a/gdb/c-exp.h +++ b/gdb/c-exp.h @@ -27,6 +27,8 @@ extern struct value *eval_op_objc_selector (struct type *expect_type, struct expression *exp, enum noside noside, const char *sel); +extern struct value *opencl_value_cast (struct type *type, struct value *arg); + namespace expr { @@ -105,6 +107,9 @@ public: { return OP_OBJC_MSGCALL; } }; +using opencl_cast_type_operation = cxx_cast_operation<UNOP_CAST_TYPE, + opencl_value_cast>; + }/* namespace expr */ #endif /* C_EXP_H */ |