diff options
| author | Simon Atanasyan <simon@atanasyan.com> | 2015-03-31 19:00:54 +0000 |
|---|---|---|
| committer | Simon Atanasyan <simon@atanasyan.com> | 2015-03-31 19:00:54 +0000 |
| commit | f00d85a809d9182f673cbb359fdafefbc8a64dd8 (patch) | |
| tree | 7d2f9c2506448cb51a46e837e8500df6b684f979 /lld/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp | |
| parent | acfe7d446beb5cc36f5759747c7a5637f78523db (diff) | |
| download | bcm5719-llvm-f00d85a809d9182f673cbb359fdafefbc8a64dd8.tar.gz bcm5719-llvm-f00d85a809d9182f673cbb359fdafefbc8a64dd8.zip | |
[Mips] Use llvm::make_unique
No functional changes.
llvm-svn: 233727
Diffstat (limited to 'lld/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp')
| -rw-r--r-- | lld/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp b/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp index 045f614833e..6d88b9b28de 100644 --- a/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp +++ b/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp @@ -599,15 +599,13 @@ namespace elf { template <> std::unique_ptr<TargetRelocationHandler> createMipsRelocationHandler<Mips32ELType>(MipsLinkingContext &ctx) { - return std::unique_ptr<TargetRelocationHandler>( - new RelocationHandler<Mips32ELType>(ctx)); + return llvm::make_unique<RelocationHandler<Mips32ELType>>(ctx); } template <> std::unique_ptr<TargetRelocationHandler> createMipsRelocationHandler<Mips64ELType>(MipsLinkingContext &ctx) { - return std::unique_ptr<TargetRelocationHandler>( - new RelocationHandler<Mips64ELType>(ctx)); + return llvm::make_unique<RelocationHandler<Mips64ELType>>(ctx); } } // elf |

