Define ~DIHelper::DIHelper() in .cpp.
authorRui Ueyama <ruiu@google.com>
Thu, 27 Oct 2016 21:26:57 +0000 (21:26 +0000)
committerRui Ueyama <ruiu@google.com>
Thu, 27 Oct 2016 21:26:57 +0000 (21:26 +0000)
llvm-svn: 285347

lld/ELF/InputFiles.cpp
lld/ELF/InputFiles.h

index 355d406..3ffd112 100644 (file)
@@ -52,6 +52,8 @@ template <class ELFT> DIHelper<ELFT>::DIHelper(elf::InputFile *F) {
   DwarfLine->getOrParseLineTable(LineData, 0);
 }
 
+template <class ELFT> DIHelper<ELFT>::~DIHelper() {}
+
 template <class ELFT> std::string DIHelper<ELFT>::getLineInfo(uintX_t Offset) {
   if (!DwarfLine)
     return "";
index 6113847..8b195a2 100644 (file)
@@ -65,11 +65,13 @@ class SymbolBody;
 // we cache debugging information in order to parse it only once
 // for each object file we link.
 template <class ELFT> class DIHelper {
-public:
   typedef typename ELFT::uint uintX_t;
 
+public:
   DIHelper(InputFile *F);
+  ~DIHelper();
   std::string getLineInfo(uintX_t Offset);
+
 private:
   std::unique_ptr<llvm::DWARFDebugLine> DwarfLine;
 };