diff options
| author | Björn Steinbrink <bsteinbr@gmail.com> | 2018-01-05 14:28:50 +0100 |
|---|---|---|
| committer | Björn Steinbrink <bsteinbr@gmail.com> | 2018-01-07 04:39:58 +0100 |
| commit | 4be1d5c37be04b8a84aa34081238746a0967016f (patch) | |
| tree | 8a87a2241c6e3f0cfa3f67fc3c9a9e4ad718d4cb /src/rustllvm/RustWrapper.cpp | |
| parent | 92189bc521ce3256a53c1b435dfb6ec6740f4734 (diff) | |
| download | rust-4be1d5c37be04b8a84aa34081238746a0967016f.tar.gz rust-4be1d5c37be04b8a84aa34081238746a0967016f.zip | |
Remove dead function LLVMRustLinkInParsedExternalBitcode()
Refs #46437
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
| -rw-r--r-- | src/rustllvm/RustWrapper.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/rustllvm/RustWrapper.cpp b/src/rustllvm/RustWrapper.cpp index e9eaad853d5..8030a545ec3 100644 --- a/src/rustllvm/RustWrapper.cpp +++ b/src/rustllvm/RustWrapper.cpp @@ -927,23 +927,6 @@ extern "C" bool LLVMRustLinkInExternalBitcode(LLVMModuleRef DstRef, char *BC, return true; } -extern "C" bool LLVMRustLinkInParsedExternalBitcode( - LLVMModuleRef DstRef, LLVMModuleRef SrcRef) { -#if LLVM_VERSION_GE(4, 0) - Module *Dst = unwrap(DstRef); - std::unique_ptr<Module> Src(unwrap(SrcRef)); - - if (Linker::linkModules(*Dst, std::move(Src))) { - LLVMRustSetLastError("failed to link modules"); - return false; - } - return true; -#else - LLVMRustSetLastError("can't link parsed modules on this LLVM"); - return false; -#endif -} - // Note that the two following functions look quite similar to the // LLVMGetSectionName function. Sadly, it appears that this function only // returns a char* pointer, which isn't guaranteed to be null-terminated. The |
