summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/ELF/InputFiles.cpp2
-rw-r--r--lld/ELF/InputFiles.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp
index 355d406a838..3ffd1128dd3 100644
--- a/lld/ELF/InputFiles.cpp
+++ b/lld/ELF/InputFiles.cpp
@@ -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 "";
diff --git a/lld/ELF/InputFiles.h b/lld/ELF/InputFiles.h
index 6113847289d..8b195a2ac62 100644
--- a/lld/ELF/InputFiles.h
+++ b/lld/ELF/InputFiles.h
@@ -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;
};
OpenPOWER on IntegriCloud