[lld] r243988 - Use make_unique. NFC.
Rafael Espindola
rafael.espindola at gmail.com
Tue Aug 4 08:06:37 PDT 2015
Author: rafael
Date: Tue Aug 4 10:06:36 2015
New Revision: 243988
URL: http://llvm.org/viewvc/llvm-project?rev=243988&view=rev
Log:
Use make_unique. NFC.
Modified:
lld/trunk/ELF/Driver.cpp
Modified: lld/trunk/ELF/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Driver.cpp?rev=243988&r1=243987&r2=243988&view=diff
==============================================================================
--- lld/trunk/ELF/Driver.cpp (original)
+++ lld/trunk/ELF/Driver.cpp Tue Aug 4 10:06:36 2015
@@ -61,7 +61,7 @@ MemoryBufferRef LinkerDriver::openFile(S
}
static std::unique_ptr<InputFile> createFile(MemoryBufferRef MB) {
- return std::unique_ptr<InputFile>(new ObjectFile<object::ELF64LE>(MB));
+ return make_unique<ObjectFile<object::ELF64LE>>(MB);
}
void LinkerDriver::link(ArrayRef<const char *> ArgsArr) {
More information about the llvm-commits
mailing list