This is an archive of the discontinued LLVM Phabricator instance.

Add support for invoke/landingpad/resume in C API test
ClosedPublic

Authored by deadalnix on Feb 17 2016, 4:54 PM.

Details

Summary

As per title. There was a lot of part missing in the C API, so I had to extend the invoke and landingpad API.

Diff Detail

Repository
rL LLVM

Event Timeline

deadalnix updated this revision to Diff 48262.Feb 17 2016, 4:54 PM
deadalnix retitled this revision from to Add support for invoke/landingpad/resume in C API test.
deadalnix updated this object.
deadalnix added a subscriber: llvm-commits.
rnk accepted this revision.Feb 18 2016, 11:38 AM
rnk added a reviewer: rnk.
rnk added a subscriber: rnk.

lgtm

This revision is now accepted and ready to land.Feb 18 2016, 11:38 AM
rnk added inline comments.Feb 18 2016, 11:39 AM
include/llvm-c/Core.h
2752–2759 ↗(On Diff #48262)

Well, one concern I have here is that we don't distinguish between catch and filter clauses in this API. We rely on the fact that array constants are filters and everything else is a catch. We can probably just live with that.

deadalnix added inline comments.Feb 18 2016, 12:31 PM
include/llvm-c/Core.h
2752–2759 ↗(On Diff #48262)

Yes right now there is no way to make the difference in the C API. I'd be willing to review any proposal that add this capability.

This revision was automatically updated to reflect the committed changes.