mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Migrate llvm::make_unique to std::make_unique
Now that we've moved to C++14, we no longer need the llvm::make_unique implementation from STLExtras.h. This patch is a mechanical replacement of (hopefully) all the llvm::make_unique instances in the swift repo.
This commit is contained in:
@@ -2132,8 +2132,8 @@ static int diagnoseModuleChange(SDKContext &Ctx, SDKNodeRoot *LeftModule,
|
||||
OS = FileOS.get();
|
||||
}
|
||||
std::unique_ptr<DiagnosticConsumer> pConsumer = options::CompilerStyleDiags ?
|
||||
llvm::make_unique<PrintingDiagnosticConsumer>():
|
||||
llvm::make_unique<ModuleDifferDiagsConsumer>(true, *OS);
|
||||
std::make_unique<PrintingDiagnosticConsumer>():
|
||||
std::make_unique<ModuleDifferDiagsConsumer>(true, *OS);
|
||||
|
||||
Ctx.getDiags().addConsumer(*pConsumer);
|
||||
TypeAliasDiffFinder(LeftModule, RightModule,
|
||||
@@ -2205,8 +2205,8 @@ static int generateMigrationScript(StringRef LeftPath, StringRef RightPath,
|
||||
}
|
||||
llvm::errs() << "Diffing: " << LeftPath << " and " << RightPath << "\n";
|
||||
std::unique_ptr<DiagnosticConsumer> pConsumer = options::CompilerStyleDiags ?
|
||||
llvm::make_unique<PrintingDiagnosticConsumer>():
|
||||
llvm::make_unique<ModuleDifferDiagsConsumer>(false);
|
||||
std::make_unique<PrintingDiagnosticConsumer>():
|
||||
std::make_unique<ModuleDifferDiagsConsumer>(false);
|
||||
SDKContext Ctx(Opts);
|
||||
Ctx.getDiags().addConsumer(*pConsumer);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user