[llvm] r176793 - Use LLVMBool instead of 'bool' in the C API. Based on a patch by Peter Zotov!
Nick Lewycky
nicholas at mxc.ca
Sun Mar 10 14:58:22 PDT 2013
Author: nicholas
Date: Sun Mar 10 16:58:22 2013
New Revision: 176793
URL: http://llvm.org/viewvc/llvm-project?rev=176793&view=rev
Log:
Use LLVMBool instead of 'bool' in the C API. Based on a patch by Peter Zotov!
Modified:
llvm/trunk/include/llvm-c/Transforms/PassManagerBuilder.h
llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp
Modified: llvm/trunk/include/llvm-c/Transforms/PassManagerBuilder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/Transforms/PassManagerBuilder.h?rev=176793&r1=176792&r2=176793&view=diff
==============================================================================
--- llvm/trunk/include/llvm-c/Transforms/PassManagerBuilder.h (original)
+++ llvm/trunk/include/llvm-c/Transforms/PassManagerBuilder.h Sun Mar 10 16:58:22 2013
@@ -77,8 +77,8 @@ LLVMPassManagerBuilderPopulateModulePass
/** See llvm::PassManagerBuilder::populateLTOPassManager. */
void LLVMPassManagerBuilderPopulateLTOPassManager(LLVMPassManagerBuilderRef PMB,
LLVMPassManagerRef PM,
- bool Internalize,
- bool RunInliner);
+ LLVMBool Internalize,
+ LLVMBool RunInliner);
/**
* @}
Modified: llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp?rev=176793&r1=176792&r2=176793&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/PassManagerBuilder.cpp Sun Mar 10 16:58:22 2013
@@ -391,9 +391,9 @@ LLVMPassManagerBuilderPopulateModulePass
void LLVMPassManagerBuilderPopulateLTOPassManager(LLVMPassManagerBuilderRef PMB,
LLVMPassManagerRef PM,
- bool Internalize,
- bool RunInliner) {
+ LLVMBool Internalize,
+ LLVMBool RunInliner) {
PassManagerBuilder *Builder = unwrap(PMB);
PassManagerBase *LPM = unwrap(PM);
- Builder->populateLTOPassManager(*LPM, Internalize, RunInliner);
+ Builder->populateLTOPassManager(*LPM, Internalize != 0, RunInliner != 0);
}
More information about the llvm-commits
mailing list