Skip to content

Commit ad060aa

Browse files
Elliott Slaughtergraydon
authored andcommitted
---
yaml --- r: 31379 b: refs/heads/dist-snap c: d9c9a2f h: refs/heads/master i: 31377: ff47574 31375: b968c2e v: v3
1 parent 60ad25f commit ad060aa

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
@@ -7,6 +7,6 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
99
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
10-
refs/heads/dist-snap: 668e2c86a0cef422938f2e6a205c7eb8304386d1
10+
refs/heads/dist-snap: d9c9a2f97e73513030916f646adaed21e0503a4a
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/dist-snap/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) {

branches/dist-snap/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();

branches/dist-snap/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)