forked from OSchip/llvm-project
[C API] Make the 'lower switch' pass available via the C API.
llvm-svn: 217630
This commit is contained in:
parent
b2c5c6dde3
commit
14ae60407d
|
@ -89,6 +89,9 @@ void LLVMAddMemCpyOptPass(LLVMPassManagerRef PM);
|
|||
/** See llvm::createPartiallyInlineLibCallsPass function. */
|
||||
void LLVMAddPartiallyInlineLibCallsPass(LLVMPassManagerRef PM);
|
||||
|
||||
/** See llvm::createLowerSwitchPass function. */
|
||||
void LLVMAddLowerSwitchPass(LLVMPassManagerRef PM);
|
||||
|
||||
/** See llvm::createPromoteMemoryToRegisterPass function. */
|
||||
void LLVMAddPromoteMemoryToRegisterPass(LLVMPassManagerRef PM);
|
||||
|
||||
|
|
|
@ -151,6 +151,10 @@ void LLVMAddPartiallyInlineLibCallsPass(LLVMPassManagerRef PM) {
|
|||
unwrap(PM)->add(createPartiallyInlineLibCallsPass());
|
||||
}
|
||||
|
||||
void LLVMAddLowerSwitchPass(LLVMPassManagerRef PM) {
|
||||
unwrap(PM)->add(createLowerSwitchPass());
|
||||
}
|
||||
|
||||
void LLVMAddPromoteMemoryToRegisterPass(LLVMPassManagerRef PM) {
|
||||
unwrap(PM)->add(createPromoteMemoryToRegisterPass());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue