[lld] r285347 - Define ~DIHelper::DIHelper() in .cpp.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 27 14:26:57 PDT 2016


Author: ruiu
Date: Thu Oct 27 16:26:57 2016
New Revision: 285347

URL: http://llvm.org/viewvc/llvm-project?rev=285347&view=rev
Log:
Define ~DIHelper::DIHelper() in .cpp.

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=285347&r1=285346&r2=285347&view=diff
==============================================================================
--- lld/trunk/ELF/InputFiles.cpp (original)
+++ lld/trunk/ELF/InputFiles.cpp Thu Oct 27 16:26:57 2016
@@ -52,6 +52,8 @@ template <class ELFT> DIHelper<ELFT>::DI
   DwarfLine->getOrParseLineTable(LineData, 0);
 }
 
+template <class ELFT> DIHelper<ELFT>::~DIHelper() {}
+
 template <class ELFT> std::string DIHelper<ELFT>::getLineInfo(uintX_t Offset) {
   if (!DwarfLine)
     return "";

Modified: lld/trunk/ELF/InputFiles.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputFiles.h?rev=285347&r1=285346&r2=285347&view=diff
==============================================================================
--- lld/trunk/ELF/InputFiles.h (original)
+++ lld/trunk/ELF/InputFiles.h Thu Oct 27 16:26:57 2016
@@ -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;
 };




More information about the llvm-commits mailing list