commit | 95642b95bd4268260816370de8fea3e86e285f11 | [log] [tgz] |
---|---|---|
author | Rui Ueyama <ruiu@google.com> | Tue Nov 01 23:09:07 2016 +0000 |
committer | Rui Ueyama <ruiu@google.com> | Tue Nov 01 23:09:07 2016 +0000 |
tree | 8b25e4a4b836d2d6e633ad7da8397643fefd46c2 | |
parent | 3d463193a961c891ec1b49d07de4729794cc5b14 [diff] [blame] |
Remove Out::Pool and use make() instead. llvm-svn: 285763
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index 6e7b775..b51cf80 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp
@@ -543,8 +543,7 @@ continue; } - auto *OutSec = new OutputSection<ELFT>(Cmd->Name, Type, Flags); - Out<ELFT>::Pool.emplace_back(OutSec); + auto *OutSec = make<OutputSection<ELFT>>(Cmd->Name, Type, Flags); OutputSections->push_back(OutSec); } }