diff options
-rw-r--r-- | lld/ELF/GdbIndex.cpp | 3 | ||||
-rw-r--r-- | lld/ELF/GdbIndex.h | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/lld/ELF/GdbIndex.cpp b/lld/ELF/GdbIndex.cpp index 7db036dc9d8..4ddaef4b564 100644 --- a/lld/ELF/GdbIndex.cpp +++ b/lld/ELF/GdbIndex.cpp @@ -24,8 +24,7 @@ using namespace llvm::object; using namespace lld; using namespace lld::elf; -template <class ELFT> -LLDDwarfObj<ELFT>::LLDDwarfObj(ObjFile<ELFT> *Obj) : Obj(Obj) { +template <class ELFT> LLDDwarfObj<ELFT>::LLDDwarfObj(ObjFile<ELFT> *Obj) { for (InputSectionBase *Sec : Obj->getSections()) { if (!Sec) continue; diff --git a/lld/ELF/GdbIndex.h b/lld/ELF/GdbIndex.h index 218ca9964aa..375e796994d 100644 --- a/lld/ELF/GdbIndex.h +++ b/lld/ELF/GdbIndex.h @@ -24,7 +24,6 @@ struct LLDDWARFSection final : public llvm::DWARFSection { }; template <class ELFT> class LLDDwarfObj final : public llvm::DWARFObject { - ObjFile<ELFT> *Obj; LLDDWARFSection InfoSection; LLDDWARFSection RangeSection; LLDDWARFSection LineSection; |