[lld] r288996 - Remove redundant call of std::unique_ptr::get.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 7 15:26:39 PST 2016
Author: ruiu
Date: Wed Dec 7 17:26:39 2016
New Revision: 288996
URL: http://llvm.org/viewvc/llvm-project?rev=288996&view=rev
Log:
Remove redundant call of std::unique_ptr::get.
Obj is an instance of std::unique_ptr, so *Obj.get() is the same as *Obj.
Modified:
lld/trunk/ELF/InputFiles.cpp
Modified: lld/trunk/ELF/InputFiles.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputFiles.cpp?rev=288996&r1=288995&r2=288996&view=diff
==============================================================================
--- lld/trunk/ELF/InputFiles.cpp (original)
+++ lld/trunk/ELF/InputFiles.cpp Wed Dec 7 17:26:39 2016
@@ -58,7 +58,7 @@ template <class ELFT> void elf::ObjectFi
"createObjectFile failed");
ObjectInfo ObjInfo;
- DWARFContextInMemory Dwarf(*Obj.get(), &ObjInfo);
+ DWARFContextInMemory Dwarf(*Obj, &ObjInfo);
DwarfLine.reset(new DWARFDebugLine(&Dwarf.getLineSection().Relocs));
DataExtractor LineData(Dwarf.getLineSection().Data,
ELFT::TargetEndianness == support::little,
More information about the llvm-commits
mailing list