diff options
| author | Rui Ueyama <ruiu@google.com> | 2015-02-06 22:44:16 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2015-02-06 22:44:16 +0000 |
| commit | 92634be399c5b97d527820853cd6fb6dcdf77590 (patch) | |
| tree | d664b9dd18a553da448a4d4fe008a28d5e4f8253 /lld/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.cpp | |
| parent | 3d982214b0464b6a520331a4146a0e03068cc21b (diff) | |
| download | bcm5719-llvm-92634be399c5b97d527820853cd6fb6dcdf77590.tar.gz bcm5719-llvm-92634be399c5b97d527820853cd6fb6dcdf77590.zip | |
Use make_unique.
llvm-svn: 228453
Diffstat (limited to 'lld/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.cpp')
| -rw-r--r-- | lld/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lld/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.cpp b/lld/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.cpp index 02863f37064..1b1a4d9abda 100644 --- a/lld/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.cpp +++ b/lld/lib/ReaderWriter/ELF/ARM/ARMRelocationPass.cpp @@ -128,8 +128,7 @@ lld::elf::createARMRelocationPass(const ARMLinkingContext &ctx) { case llvm::ELF::ET_EXEC: if (ctx.isDynamic()) llvm_unreachable("Unhandled output file type"); - else - return std::unique_ptr<Pass>(new ARMStaticRelocationPass(ctx)); + return llvm::make_unique<ARMStaticRelocationPass>(ctx); default: llvm_unreachable("Unhandled output file type"); } |

