[PATCH] D17359: Add support for invoke/landingpad/resume in C API test

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 18 11:39:55 PST 2016


rnk added inline comments.

================
Comment at: include/llvm-c/Core.h:2752-2759
@@ -2708,4 +2751,10 @@
 
+/* Get the number of clauses on the landingpad instruction */
+unsigned LLVMGetNumClauses(LLVMValueRef LandingPad);
+
+/* Get the value of the clause at idnex Idx on the landingpad instruction */
+LLVMValueRef LLVMGetClause(LLVMValueRef LandingPad, unsigned Idx);
+
 /* Add a catch or filter clause to the landingpad instruction */
 void LLVMAddClause(LLVMValueRef LandingPad, LLVMValueRef ClauseVal);
 
----------------
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.


http://reviews.llvm.org/D17359





More information about the llvm-commits mailing list