Skip to content

Commit dc0e32a

Browse files
Elliott Slaughtergraydon
authored andcommitted
---
yaml --- r: 22717 b: refs/heads/master c: d9c9a2f h: refs/heads/master i: 22715: 93655f9 v: v3
1 parent 4aa0a17 commit dc0e32a

File tree

4 files changed

+1
-20
lines changed

4 files changed

+1
-20
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 668e2c86a0cef422938f2e6a205c7eb8304386d1
2+
refs/heads/master: d9c9a2f97e73513030916f646adaed21e0503a4a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

trunk/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) {

trunk/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();

trunk/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)