OpenCL block literal structs have different fields which are now correctly identified in the debug info.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
Thank you for taking a look @yaxunl. Should I wait for another reviewer or can I commit this?
The patch is fine, in general, couple of comments:
a) Can you refactor this so the if conditionals are just two functions? Those functions are big enough already.
b) I'm not quite sure why you're picking limited here, do you have an explanation?
c) Can you split that part out into a separate test? Additional run lines in the existing blocks.cl test would be fine.
Thanks!
Sorry, I didn't see the additional comments until after I committed. I will make those changes; is it OK to update this review, or should I create a new one?
As for choosing limited it was just what the function adding the debug info checked for as a minimum; what would you generally choose instead?
A new one is great. Just treat this as post commit :)
As for choosing limited it was just what the function adding the debug info checked for as a minimum; what would you generally choose instead?
I'd have just suggested plain -g for it?