diff options
author | Jacques Pienaar <jpienaar@google.com> | 2019-08-17 11:05:35 -0700 |
---|---|---|
committer | A. Unique TensorFlower <gardener@tensorflow.org> | 2019-08-17 11:06:03 -0700 |
commit | 79f53b0cf1fd204af0a09c8e085dd09a1ce0b6d9 (patch) | |
tree | 066738742712f75cc95b5ea30ae10d9a9c379d8b /mlir/lib/Pass/Pass.cpp | |
parent | dbf8538b64a61d0b93420b293b8508b158377757 (diff) | |
download | bcm5719-llvm-79f53b0cf1fd204af0a09c8e085dd09a1ce0b6d9.tar.gz bcm5719-llvm-79f53b0cf1fd204af0a09c8e085dd09a1ce0b6d9.zip |
Change from llvm::make_unique to std::make_unique
Switch to C++14 standard method as llvm::make_unique has been removed (
https://reviews.llvm.org/D66259). Also mark some targets as c++14 to ease next
integrates.
PiperOrigin-RevId: 263953918
Diffstat (limited to 'mlir/lib/Pass/Pass.cpp')
-rw-r--r-- | mlir/lib/Pass/Pass.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mlir/lib/Pass/Pass.cpp b/mlir/lib/Pass/Pass.cpp index ba3b4742cc7..13f2738b002 100644 --- a/mlir/lib/Pass/Pass.cpp +++ b/mlir/lib/Pass/Pass.cpp @@ -283,7 +283,7 @@ void PassManager::addPass(std::unique_ptr<ModulePassBase> pass) { // Add a verifier run if requested. if (verifyPasses) - mpe->addPass(llvm::make_unique<ModuleVerifierPass>()); + mpe->addPass(std::make_unique<ModuleVerifierPass>()); } /// Add a function pass to the current manager. This takes ownership over the @@ -295,11 +295,11 @@ void PassManager::addPass(std::unique_ptr<FunctionPassBase> pass) { /// Create an executor adaptor for this pass. if (disableThreads || !llvm::llvm_is_multithreaded()) { // If multi-threading is disabled, then create a synchronous adaptor. - auto adaptor = llvm::make_unique<ModuleToFunctionPassAdaptor>(); + auto adaptor = std::make_unique<ModuleToFunctionPassAdaptor>(); fpe = &adaptor->getFunctionExecutor(); addPass(std::unique_ptr<ModulePassBase>{adaptor.release()}); } else { - auto adaptor = llvm::make_unique<ModuleToFunctionPassAdaptorParallel>(); + auto adaptor = std::make_unique<ModuleToFunctionPassAdaptorParallel>(); fpe = &adaptor->getFunctionExecutor(); addPass(std::unique_ptr<ModulePassBase>{adaptor.release()}); } @@ -313,7 +313,7 @@ void PassManager::addPass(std::unique_ptr<FunctionPassBase> pass) { // Add a verifier run if requested. if (verifyPasses) - fpe->addPass(llvm::make_unique<FunctionVerifierPass>()); + fpe->addPass(std::make_unique<FunctionVerifierPass>()); } /// Add the provided instrumentation to the pass manager. This takes ownership |