Skip to content

Commit d9c9a2f

Browse files
Elliott Slaughtergraydon
authored andcommitted
Remove rustllvm functions which have moved upstream.
1 parent 668e2c8 commit d9c9a2f

File tree

3 files changed

+0
-19
lines changed

3 files changed

+0
-19
lines changed

src/rustc/lib/llvm.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -969,10 +969,6 @@ extern mod llvm {
969969

970970
fn LLVMConstNamedStruct(S: TypeRef, ConstantVals: *ValueRef,
971971
Count: c_uint) -> ValueRef;
972-
973-
/** Links LLVM modules together. `Src` is destroyed by this call and
974-
must never be referenced again. */
975-
fn LLVMLinkModules(Dest: ModuleRef, Src: ModuleRef) -> Bool;
976972
}
977973

978974
fn SetInstructionCallConv(Instr: ValueRef, CC: CallConv) {

src/rustllvm/RustWrapper.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -61,20 +61,6 @@ extern "C" void LLVMRustAddPrintModulePass(LLVMPassManagerRef PMR,
6161
PM->run(*unwrap(M));
6262
}
6363

64-
extern "C" bool LLVMLinkModules(LLVMModuleRef Dest, LLVMModuleRef Src) {
65-
static std::string err;
66-
67-
// For some strange reason, unwrap() doesn't work here. "No matching
68-
// function" error.
69-
Module *DM = reinterpret_cast<Module *>(Dest);
70-
Module *SM = reinterpret_cast<Module *>(Src);
71-
if (Linker::LinkModules(DM, SM, Linker::DestroySource, &err)) {
72-
LLVMRustError = err.c_str();
73-
return false;
74-
}
75-
return true;
76-
}
77-
7864
void LLVMInitializeX86TargetInfo();
7965
void LLVMInitializeX86Target();
8066
void LLVMInitializeX86TargetMC();

src/rustllvm/rustllvm.def.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ LLVMRustConstInt
77
LLVMRustParseBitcode
88
LLVMRustParseAssemblyFile
99
LLVMRustPrintPassTimings
10-
LLVMLinkModules
1110
LLVMCreateObjectFile
1211
LLVMDisposeObjectFile
1312
LLVMGetSections

0 commit comments

Comments
 (0)