llvm.org GIT mirror llvm / 28a7a30
[LLVM-C] Expose the "Add Discriminators" Pass To LLVM-C Summary: Add bindings to create a wrapped "Add Discriminators" pass. Now that we have debug info support, this is a handy transform to have. Reviewers: whitequark, deadalnix Reviewed By: whitequark Subscribers: dblaikie, aprantl, hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D58624 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356272 91177308-0d34-0410-b5e6-96231b3b80d8 Robert Widmann 5 months ago
2 changed file(s) with 6 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
3737 /** See llvm::createPromoteMemoryToRegisterPass function. */
3838 void LLVMAddPromoteMemoryToRegisterPass(LLVMPassManagerRef PM);
3939
40 /** See llvm::createAddDiscriminatorsPass function. */
41 void LLVMAddAddDiscriminatorsPass(LLVMPassManagerRef PM);
42
4043 /**
4144 * @}
4245 */
5353 unwrap(PM)->add(createPromoteMemoryToRegisterPass());
5454 }
5555
56 void LLVMAddAddDiscriminatorsPass(LLVMPassManagerRef PM) {
57 unwrap(PM)->add(createAddDiscriminatorsPass());
58 }