diff options
| author | Elliott Slaughter <eslaughter@mozilla.com> | 2012-06-25 09:54:12 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2012-07-24 17:11:13 -0700 |
| commit | d9c9a2f97e73513030916f646adaed21e0503a4a (patch) | |
| tree | 8716905d338817acaea1eda643a0d29663d3addf /src/rustllvm/RustWrapper.cpp | |
| parent | 668e2c86a0cef422938f2e6a205c7eb8304386d1 (diff) | |
| download | rust-d9c9a2f97e73513030916f646adaed21e0503a4a.tar.gz rust-d9c9a2f97e73513030916f646adaed21e0503a4a.zip | |
Remove rustllvm functions which have moved upstream.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
| -rw-r--r-- | src/rustllvm/RustWrapper.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/rustllvm/RustWrapper.cpp b/src/rustllvm/RustWrapper.cpp index 8135465b30d..a9f759b26aa 100644 --- a/src/rustllvm/RustWrapper.cpp +++ b/src/rustllvm/RustWrapper.cpp @@ -61,20 +61,6 @@ extern "C" void LLVMRustAddPrintModulePass(LLVMPassManagerRef PMR, PM->run(*unwrap(M)); } -extern "C" bool LLVMLinkModules(LLVMModuleRef Dest, LLVMModuleRef Src) { - static std::string err; - - // For some strange reason, unwrap() doesn't work here. "No matching - // function" error. - Module *DM = reinterpret_cast<Module *>(Dest); - Module *SM = reinterpret_cast<Module *>(Src); - if (Linker::LinkModules(DM, SM, Linker::DestroySource, &err)) { - LLVMRustError = err.c_str(); - return false; - } - return true; -} - void LLVMInitializeX86TargetInfo(); void LLVMInitializeX86Target(); void LLVMInitializeX86TargetMC(); |
