about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorElly Jones <elly@leptoquark.net>2011-10-11 21:32:34 -0400
committerElly Jones <elly@leptoquark.net>2011-10-11 21:32:34 -0400
commit19eae0bc3849e553aabf0f61cc2070236c2fffe7 (patch)
treea8eb0cb752d6765efd7a4a5eb99118ba6c67fd81 /src/rustllvm/RustWrapper.cpp
parentf480203fdd4d8b498453c1f7cc0ad4f59d87c596 (diff)
downloadrust-19eae0bc3849e553aabf0f61cc2070236c2fffe7.tar.gz
rust-19eae0bc3849e553aabf0f61cc2070236c2fffe7.zip
Update LinkModules invocation to use new prototype
LLVM revision 141606 changes the prototype of llvm::Linker::LinkModules.

Signed-off-by: Elly Jones <elly@leptoquark.net>
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
-rw-r--r--src/rustllvm/RustWrapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rustllvm/RustWrapper.cpp b/src/rustllvm/RustWrapper.cpp
index 624b5854b5f..3031ce6685a 100644
--- a/src/rustllvm/RustWrapper.cpp
+++ b/src/rustllvm/RustWrapper.cpp
@@ -53,7 +53,7 @@ extern "C" bool LLVMLinkModules(LLVMModuleRef Dest, LLVMModuleRef Src) {
   // function" error.
   Module *DM = reinterpret_cast<Module *>(Dest);
   Module *SM = reinterpret_cast<Module *>(Src);
-  if (Linker::LinkModules(DM, SM, &err)) {
+  if (Linker::LinkModules(DM, SM, Linker::DestroySource, &err)) {
     LLVMRustError = err.c_str();
     return false;
   }