[lld] r334341 - Remove a dead variable.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 8 17:54:19 PDT 2018
Author: ruiu
Date: Fri Jun 8 17:54:18 2018
New Revision: 334341
URL: http://llvm.org/viewvc/llvm-project?rev=334341&view=rev
Log:
Remove a dead variable.
Modified:
lld/trunk/ELF/InputFiles.cpp
lld/trunk/ELF/InputFiles.h
Modified: lld/trunk/ELF/InputFiles.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputFiles.cpp?rev=334341&r1=334340&r2=334341&view=diff
==============================================================================
--- lld/trunk/ELF/InputFiles.cpp (original)
+++ lld/trunk/ELF/InputFiles.cpp Fri Jun 8 17:54:18 2018
@@ -126,7 +126,6 @@ std::string InputFile::getSrcMsg(const S
template <class ELFT> void ObjFile<ELFT>::initializeDwarf() {
Dwarf = llvm::make_unique<DWARFContext>(make_unique<LLDDwarfObj<ELFT>>(this));
const DWARFObject &Obj = Dwarf->getDWARFObj();
- DwarfLine.reset(new DWARFDebugLine);
DWARFDataExtractor LineData(Obj, Obj.getLineSection(), Config->IsLE,
Config->Wordsize);
Modified: lld/trunk/ELF/InputFiles.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputFiles.h?rev=334341&r1=334340&r2=334341&view=diff
==============================================================================
--- lld/trunk/ELF/InputFiles.h (original)
+++ lld/trunk/ELF/InputFiles.h Fri Jun 8 17:54:18 2018
@@ -227,7 +227,6 @@ private:
// reporting. Linker may find reasonable number of errors in a
// single object file, so we cache debugging information in order to
// parse it only once for each object file we link.
- std::unique_ptr<llvm::DWARFContext> Dwarf;
std::vector<const llvm::DWARFDebugLine::LineTable *> LineTables;
std::unique_ptr<llvm::DWARFDebugLine> DwarfLine;
struct VarLoc {
More information about the llvm-commits
mailing list