From 0eaee545eef49ff9498234d3a51a5cbde59bf976 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Thu, 15 Aug 2019 15:54:37 +0000 Subject: [llvm] 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 across the monorepo. llvm-svn: 369013 --- llvm/lib/TableGen/SetTheory.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'llvm/lib/TableGen/SetTheory.cpp') diff --git a/llvm/lib/TableGen/SetTheory.cpp b/llvm/lib/TableGen/SetTheory.cpp index a870e41d58f..5a30ee98cce 100644 --- a/llvm/lib/TableGen/SetTheory.cpp +++ b/llvm/lib/TableGen/SetTheory.cpp @@ -255,16 +255,16 @@ void SetTheory::Operator::anchor() {} void SetTheory::Expander::anchor() {} SetTheory::SetTheory() { - addOperator("add", llvm::make_unique()); - addOperator("sub", llvm::make_unique()); - addOperator("and", llvm::make_unique()); - addOperator("shl", llvm::make_unique()); - addOperator("trunc", llvm::make_unique()); - addOperator("rotl", llvm::make_unique(false)); - addOperator("rotr", llvm::make_unique(true)); - addOperator("decimate", llvm::make_unique()); - addOperator("interleave", llvm::make_unique()); - addOperator("sequence", llvm::make_unique()); + addOperator("add", std::make_unique()); + addOperator("sub", std::make_unique()); + addOperator("and", std::make_unique()); + addOperator("shl", std::make_unique()); + addOperator("trunc", std::make_unique()); + addOperator("rotl", std::make_unique(false)); + addOperator("rotr", std::make_unique(true)); + addOperator("decimate", std::make_unique()); + addOperator("interleave", std::make_unique()); + addOperator("sequence", std::make_unique()); } void SetTheory::addOperator(StringRef Name, std::unique_ptr Op) { @@ -276,7 +276,7 @@ void SetTheory::addExpander(StringRef ClassName, std::unique_ptr E) { } void SetTheory::addFieldExpander(StringRef ClassName, StringRef FieldName) { - addExpander(ClassName, llvm::make_unique(FieldName)); + addExpander(ClassName, std::make_unique(FieldName)); } void SetTheory::evaluate(Init *Expr, RecSet &Elts, ArrayRef Loc) { -- cgit v1.2.3