Native: add LLVMSetNoTailCall to LLVM C API
This commit is contained in:
committed by
Space
parent
085e2448cd
commit
874cc6c51c
@@ -16,6 +16,7 @@
|
||||
#include <llvm/IR/DerivedTypes.h>
|
||||
#include <llvm/IR/Constants.h>
|
||||
#include <llvm/IR/Intrinsics.h>
|
||||
#include <llvm/IR/Instructions.h>
|
||||
#include <llvm/IR/LegacyPassManager.h>
|
||||
#include <llvm/Analysis/TargetLibraryInfo.h>
|
||||
#include <llvm/Transforms/Instrumentation.h>
|
||||
@@ -262,4 +263,8 @@ void LLVMKotlinInitializeTargets() {
|
||||
#endif
|
||||
|
||||
#undef INIT_LLVM_TARGET
|
||||
}
|
||||
}
|
||||
|
||||
void LLVMSetNoTailCall(LLVMValueRef Call) {
|
||||
unwrap<CallInst>(Call)->setTailCallKind(CallInst::TCK_NoTail);
|
||||
}
|
||||
|
||||
@@ -78,6 +78,8 @@ void LLVMAddObjCARCContractPass(LLVMPassManagerRef passManagerRef);
|
||||
|
||||
void LLVMKotlinInitializeTargets();
|
||||
|
||||
void LLVMSetNoTailCall(LLVMValueRef Call);
|
||||
|
||||
# ifdef __cplusplus
|
||||
}
|
||||
# endif
|
||||
|
||||
Reference in New Issue
Block a user