]> git.lizzy.rs Git - rust.git/blobdiff - src/rustllvm/Linker.cpp
Auto merge of #67758 - ssomers:testing_range, r=Mark-Simulacrum
[rust.git] / src / rustllvm / Linker.cpp
index 59f0b23361e540313f9ef491d79d72cd9e0222e7..69176f9cb1f6d528134a2109e5ca4348d1cbea90 100644 (file)
@@ -1,13 +1,3 @@
-// Copyright 2018 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
 #include "llvm/Linker/Linker.h"
 
 #include "rustllvm.h"
@@ -28,8 +18,7 @@ extern "C" RustLinker*
 LLVMRustLinkerNew(LLVMModuleRef DstRef) {
   Module *Dst = unwrap(DstRef);
 
-  auto Ret = llvm::make_unique<RustLinker>(*Dst);
-  return Ret.release();
+  return new RustLinker(*Dst);
 }
 
 extern "C" void