projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
332e02a
)
Remove redundant call of std::unique_ptr::get.
author
Rui Ueyama
<ruiu@google.com>
Wed, 7 Dec 2016 23:26:39 +0000
(23:26 +0000)
committer
Rui Ueyama
<ruiu@google.com>
Wed, 7 Dec 2016 23:26:39 +0000
(23:26 +0000)
Obj is an instance of std::unique_ptr, so *Obj.get() is the same as *Obj.
llvm-svn: 288996
lld/ELF/InputFiles.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/InputFiles.cpp
b/lld/ELF/InputFiles.cpp
index
66ecb51
..
06a19f5
100644
(file)
--- a/
lld/ELF/InputFiles.cpp
+++ b/
lld/ELF/InputFiles.cpp
@@
-58,7
+58,7
@@
template <class ELFT> void elf::ObjectFile<ELFT>::initializeDwarfLine() {
"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,