coverage: Emit llvm.instrprof.increment
using the normal helper method
This commit is contained in:
parent
a93c1718c8
commit
4923e856be
3 changed files with 2 additions and 36 deletions
|
@ -1531,17 +1531,6 @@ extern "C" LLVMValueRef LLVMRustBuildCall(LLVMBuilderRef B, LLVMTypeRef Ty,
|
|||
ArrayRef<OperandBundleDef>(OpBundles)));
|
||||
}
|
||||
|
||||
extern "C" LLVMValueRef
|
||||
LLVMRustGetInstrProfIncrementIntrinsic(LLVMModuleRef M) {
|
||||
#if LLVM_VERSION_GE(20, 0)
|
||||
return wrap(llvm::Intrinsic::getOrInsertDeclaration(
|
||||
unwrap(M), llvm::Intrinsic::instrprof_increment));
|
||||
#else
|
||||
return wrap(llvm::Intrinsic::getDeclaration(
|
||||
unwrap(M), llvm::Intrinsic::instrprof_increment));
|
||||
#endif
|
||||
}
|
||||
|
||||
extern "C" LLVMValueRef
|
||||
LLVMRustGetInstrProfMCDCParametersIntrinsic(LLVMModuleRef M) {
|
||||
#if LLVM_VERSION_LT(19, 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue