diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-08-14 22:28:17 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-08-14 22:28:17 +0000 |
commit | 6ba7992031cc803a01f0622f4899668b15a20a98 (patch) | |
tree | 64a078fe7e002dc2049b3d1cc5143af896c351f1 /lld/ELF/LinkerScript.cpp | |
parent | 736259e3428d36f8024e6b08e4a95167f313d958 (diff) | |
download | bcm5719-llvm-6ba7992031cc803a01f0622f4899668b15a20a98.tar.gz bcm5719-llvm-6ba7992031cc803a01f0622f4899668b15a20a98.zip |
[LLD] 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.
Differential revision: https://reviews.llvm.org/D66259
llvm-svn: 368936
Diffstat (limited to 'lld/ELF/LinkerScript.cpp')
-rw-r--r-- | lld/ELF/LinkerScript.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index c6f9345e739..23f385f290e 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -460,7 +460,7 @@ void LinkerScript::processSectionCommands() { // This is needed as there are some cases where we cannot just // thread the current state through to a lambda function created by the // script parser. - auto deleter = make_unique<AddressState>(); + auto deleter = std::make_unique<AddressState>(); ctx = deleter.get(); ctx->outSec = aether; @@ -1057,7 +1057,7 @@ static uint64_t getInitialDot() { void LinkerScript::assignAddresses() { dot = getInitialDot(); - auto deleter = make_unique<AddressState>(); + auto deleter = std::make_unique<AddressState>(); ctx = deleter.get(); errorOnMissingSection = true; switchTo(aether); |