From d9c9a2f97e73513030916f646adaed21e0503a4a Mon Sep 17 00:00:00 2001 From: Elliott Slaughter Date: Mon, 25 Jun 2012 09:54:12 -0700 Subject: Remove rustllvm functions which have moved upstream. --- src/rustllvm/RustWrapper.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/rustllvm/RustWrapper.cpp') 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(Dest); - Module *SM = reinterpret_cast(Src); - if (Linker::LinkModules(DM, SM, Linker::DestroySource, &err)) { - LLVMRustError = err.c_str(); - return false; - } - return true; -} - void LLVMInitializeX86TargetInfo(); void LLVMInitializeX86Target(); void LLVMInitializeX86TargetMC(); -- cgit 1.4.1-3-g733a5