diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-08-15 15:54:37 +0000 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-08-15 15:54:37 +0000 |
| commit | 0eaee545eef49ff9498234d3a51a5cbde59bf976 (patch) | |
| tree | fd7691e102022fb97622c5485fa8c4f506fc124e /llvm/tools/lli | |
| parent | 1c34d10776828c0756ff4f0b2b9aa8bda2be348a (diff) | |
| download | bcm5719-llvm-0eaee545eef49ff9498234d3a51a5cbde59bf976.tar.gz bcm5719-llvm-0eaee545eef49ff9498234d3a51a5cbde59bf976.zip | |
[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
Diffstat (limited to 'llvm/tools/lli')
| -rw-r--r-- | llvm/tools/lli/lli.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/tools/lli/lli.cpp b/llvm/tools/lli/lli.cpp index 84b0f6c08c9..ccad0672141 100644 --- a/llvm/tools/lli/lli.cpp +++ b/llvm/tools/lli/lli.cpp @@ -308,7 +308,7 @@ static void addCygMingExtraModule(ExecutionEngine &EE, LLVMContext &Context, Triple TargetTriple(TargetTripleStr); // Create a new module. - std::unique_ptr<Module> M = make_unique<Module>("CygMingHelper", Context); + std::unique_ptr<Module> M = std::make_unique<Module>("CygMingHelper", Context); M->setTargetTriple(TargetTripleStr); // Create an empty function named "__main". @@ -744,7 +744,7 @@ int runOrcLazyJIT(const char *ProgName) { // Start setting up the JIT environment. // Parse the main module. - orc::ThreadSafeContext TSCtx(llvm::make_unique<LLVMContext>()); + orc::ThreadSafeContext TSCtx(std::make_unique<LLVMContext>()); SMDiagnostic Err; auto MainModule = parseIRFile(InputFile, Err, *TSCtx.getContext()); if (!MainModule) @@ -962,6 +962,6 @@ std::unique_ptr<FDRawChannel> launchRemote() { close(PipeFD[1][1]); // Return an RPC channel connected to our end of the pipes. - return llvm::make_unique<FDRawChannel>(PipeFD[1][0], PipeFD[0][1]); + return std::make_unique<FDRawChannel>(PipeFD[1][0], PipeFD[0][1]); #endif } |

