Remove unused LLVMModuleRef argument
This commit is contained in:
parent
2fcbda6c1a
commit
c7e50d0f37
3 changed files with 3 additions and 5 deletions
|
|
@ -683,7 +683,7 @@ pub(crate) unsafe fn llvm_optimize(
|
|||
// Here we map the old arguments to the new arguments, with an offset of 1 to make sure
|
||||
// that we don't use the newly added `%dyn_ptr`.
|
||||
unsafe {
|
||||
llvm::LLVMRustOffloadMapper(cx.llmod(), old_fn, new_fn);
|
||||
llvm::LLVMRustOffloadMapper(old_fn, new_fn);
|
||||
}
|
||||
|
||||
llvm::set_linkage(new_fn, llvm::get_linkage(old_fn));
|
||||
|
|
|
|||
|
|
@ -2025,7 +2025,7 @@ unsafe extern "C" {
|
|||
) -> &Attribute;
|
||||
|
||||
// Operations on functions
|
||||
pub(crate) fn LLVMRustOffloadMapper<'a>(M: &'a Module, Fn: &'a Value, Fn: &'a Value);
|
||||
pub(crate) fn LLVMRustOffloadMapper<'a>(Fn: &'a Value, Fn: &'a Value);
|
||||
pub(crate) fn LLVMRustGetOrInsertFunction<'a>(
|
||||
M: &'a Module,
|
||||
Name: *const c_char,
|
||||
|
|
|
|||
|
|
@ -144,9 +144,7 @@ extern "C" void LLVMRustPrintStatistics(RustStringRef OutBuf) {
|
|||
llvm::PrintStatistics(OS);
|
||||
}
|
||||
|
||||
extern "C" void LLVMRustOffloadMapper(LLVMModuleRef M, LLVMValueRef OldFn,
|
||||
LLVMValueRef NewFn) {
|
||||
llvm::Module *module = llvm::unwrap(M);
|
||||
extern "C" void LLVMRustOffloadMapper(LLVMValueRef OldFn, LLVMValueRef NewFn) {
|
||||
llvm::Function *oldFn = llvm::unwrap<llvm::Function>(OldFn);
|
||||
llvm::Function *newFn = llvm::unwrap<llvm::Function>(NewFn);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue