]> granicus.if.org Git - llvm/commit
[LLVM-C] Improve Bindings to The Internalize Pass
authorRobert Widmann <devteam.codafi@gmail.com>
Tue, 23 Jul 2019 04:56:44 +0000 (04:56 +0000)
committerRobert Widmann <devteam.codafi@gmail.com>
Tue, 23 Jul 2019 04:56:44 +0000 (04:56 +0000)
commit2622ae5029f42e7a65da4a57e4da97ac69473669
treeda8fa16f8f4f6d7dfb07121ae772f82c514f9be6
parentb08d3b0692a768edb6952ae3fc388c6916efe4f7
[LLVM-C] Improve Bindings to The Internalize Pass

Summary: Adds a binding to the internalize pass that allows the caller to pass a function pointer that acts as the visibility-preservation predicate.  Previously, one could only pass an unsigned value (not LLVMBool?) that directed the pass to consider "main" or not.

Reviewers: whitequark, deadalnix, harlanhaskins

Reviewed By: whitequark, harlanhaskins

Subscribers: kren1, hiraditya, llvm-commits, harlanhaskins

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@366777 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm-c/Transforms/IPO.h
lib/Transforms/IPO/IPO.cpp