| ... | ... | @@ -312,7 +312,7 @@ getOutputStream(StringRef Path, DiagnosticsEngine &Diags, bool Binary) { |
| 312 | 312 | sys::RemoveFileOnSignal(Path); |
| 313 | 313 | |
| 314 | 314 | std::error_code EC; |
| 315 | | auto Out = llvm::make_unique<raw_fd_ostream>( |
| 315 | auto Out = std::make_unique<raw_fd_ostream>( |
| 316 | 316 | Path, EC, (Binary ? sys::fs::F_None : sys::fs::F_Text)); |
| 317 | 317 | if (EC) { |
| 318 | 318 | Diags.Report(diag::err_fe_unable_to_open_output) << Path << EC.message(); |
| ... | ... | @@ -445,7 +445,7 @@ static bool ExecuteAssembler(AssemblerInvocation &Opts, |
| 445 | 445 | std::unique_ptr<MCAsmBackend> MAB( |
| 446 | 446 | TheTarget->createMCAsmBackend(*STI, *MRI, MCOptions)); |
| 447 | 447 | |
| 448 | | auto FOut = llvm::make_unique<formatted_raw_ostream>(*Out); |
| 448 | auto FOut = std::make_unique<formatted_raw_ostream>(*Out); |
| 449 | 449 | Str.reset(TheTarget->createAsmStreamer( |
| 450 | 450 | Ctx, std::move(FOut), /*asmverbose*/ true, |
| 451 | 451 | /*useDwarfDirectory*/ true, IP, std::move(CE), std::move(MAB), |
| ... | ... | @@ -456,7 +456,7 @@ static bool ExecuteAssembler(AssemblerInvocation &Opts, |
| 456 | 456 | assert(Opts.OutputType == AssemblerInvocation::FT_Obj && |
| 457 | 457 | "Invalid file type!"); |
| 458 | 458 | if (!FDOS->supportsSeeking()) { |
| 459 | | BOS = make_unique<buffer_ostream>(*FDOS); |
| 459 | BOS = std::make_unique<buffer_ostream>(*FDOS); |
| 460 | 460 | Out = BOS.get(); |
| 461 | 461 | } |
| 462 | 462 | |
| ... | ... | @@ -590,7 +590,7 @@ int cc1as_main(ArrayRef<const char *> Argv, const char *Argv0, void *MainAddr) { |
| 590 | 590 | // FIXME: Remove this, one day. |
| 591 | 591 | if (!Asm.LLVMArgs.empty()) { |
| 592 | 592 | unsigned NumArgs = Asm.LLVMArgs.size(); |
| 593 | | auto Args = llvm::make_unique<const char*[]>(NumArgs + 2); |
| 593 | auto Args = std::make_unique<const char*[]>(NumArgs + 2); |
| 594 | 594 | Args[0] = "clang (LLVM option parsing)"; |
| 595 | 595 | for (unsigned i = 0; i != NumArgs; ++i) |
| 596 | 596 | Args[i + 1] = Asm.LLVMArgs[i].c_str(); |