]> git.lizzy.rs Git - rust.git/commitdiff
Update LinkModules invocation to use new prototype
authorElly Jones <elly@leptoquark.net>
Wed, 12 Oct 2011 01:32:34 +0000 (21:32 -0400)
committerBrian Anderson <banderson@mozilla.com>
Sat, 15 Oct 2011 22:53:18 +0000 (15:53 -0700)
LLVM revision 141606 changes the prototype of llvm::Linker::LinkModules.

Signed-off-by: Elly Jones <elly@leptoquark.net>
src/rustllvm/RustWrapper.cpp

index 624b5854b5f52787025f7ea66fe5db0190a438ba..3031ce6685a9e91aee0b9780d8a230dc6d6e6662 100644 (file)
@@ -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;
   }