[LLVM-C] Finish exception instruction bindings - Round 2
authorRobert Widmann <devteam.codafi@gmail.com>
Fri, 30 Mar 2018 17:49:53 +0000 (17:49 +0000)
committerRobert Widmann <devteam.codafi@gmail.com>
Fri, 30 Mar 2018 17:49:53 +0000 (17:49 +0000)
commit478fce9ebfa809e0f75741bbcf1de1a7a379f5c4
tree400a138835389691a03eb7368aa1847d322daf09
parent5f8c3e85aae8f0a34c69053e746af439622bf96e
[LLVM-C] Finish exception instruction bindings - Round 2

Summary:
Previous revision caused a leak in the echo test that got caught by the ASAN bots because of missing free of the handlers array and was reverted in r328759.  Resubmitting the patch with that correction.

Add support for cleanupret, catchret, catchpad, cleanuppad and catchswitch and their associated accessors.

Test is modified from SimplifyCFG because it contains many diverse usages of these instructions.

Reviewers: whitequark, deadalnix

Reviewed By: whitequark

Subscribers: llvm-commits, vlad.tsyrklevich

Differential Revision: https://reviews.llvm.org/D45100

llvm-svn: 328883
llvm/include/llvm-c/Core.h
llvm/lib/IR/Core.cpp
llvm/test/Bindings/llvm-c/echo.ll
llvm/tools/llvm-c-test/echo.cpp