Implement OpenCL ternary conditional operator
authorTom Tromey <tom@tromey.com>
Mon, 8 Mar 2021 14:27:57 +0000 (07:27 -0700)
committerTom Tromey <tom@tromey.com>
Mon, 8 Mar 2021 14:28:31 +0000 (07:28 -0700)
commitcf12b17fd05811e08235fd4aaca5306bd78c7527
treeb1266eb5299ea2aa2f223e8bdabbb35162f877ab
parent944fd3b8126f27569a6a3552b3457ba8a8cc3f87
Implement OpenCL ternary conditional operator

This implements the ?: ternary conditional operator for OpenCL.

gdb/ChangeLog
2021-03-08  Tom Tromey  <tom@tromey.com>

* opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
method.
* c-exp.h (class opencl_ternop_cond_operation): New.
gdb/ChangeLog
gdb/c-exp.h
gdb/opencl-lang.c