summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2018-06-09 00:54:18 +0000
committerRui Ueyama <ruiu@google.com>2018-06-09 00:54:18 +0000
commitc020064655bcf3c99f24b2920aafcdbe46dda677 (patch)
tree3fdd40f50620ad3ad901d32396fc8bdaa8884305
parentb24e6a990526efc83b1737d717f04e09793d3f8b (diff)
downloadbcm5719-llvm-c020064655bcf3c99f24b2920aafcdbe46dda677.tar.gz
bcm5719-llvm-c020064655bcf3c99f24b2920aafcdbe46dda677.zip
Remove a dead variable.
llvm-svn: 334341
-rw-r--r--lld/ELF/InputFiles.cpp1
-rw-r--r--lld/ELF/InputFiles.h1
2 files changed, 0 insertions, 2 deletions
diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp
index 5f1ec511806..f679b5f4778 100644
--- a/lld/ELF/InputFiles.cpp
+++ b/lld/ELF/InputFiles.cpp
@@ -126,7 +126,6 @@ std::string InputFile::getSrcMsg(const Symbol &Sym, InputSectionBase &Sec,
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);
diff --git a/lld/ELF/InputFiles.h b/lld/ELF/InputFiles.h
index 072a5df8614..1ec4db19f9d 100644
--- a/lld/ELF/InputFiles.h
+++ b/lld/ELF/InputFiles.h
@@ -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 {
OpenPOWER on IntegriCloud