From 44fa48f986beb1c6de1563eb903cdd18966e9ec9 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Thu, 27 Oct 2016 21:26:57 +0000 Subject: [PATCH] Define ~DIHelper::DIHelper() in .cpp. llvm-svn: 285347 --- lld/ELF/InputFiles.cpp | 2 ++ lld/ELF/InputFiles.h | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index 355d406..3ffd112 100644 --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -52,6 +52,8 @@ template DIHelper::DIHelper(elf::InputFile *F) { DwarfLine->getOrParseLineTable(LineData, 0); } +template DIHelper::~DIHelper() {} + template std::string DIHelper::getLineInfo(uintX_t Offset) { if (!DwarfLine) return ""; diff --git a/lld/ELF/InputFiles.h b/lld/ELF/InputFiles.h index 6113847..8b195a2 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 DIHelper { -public: typedef typename ELFT::uint uintX_t; +public: DIHelper(InputFile *F); + ~DIHelper(); std::string getLineInfo(uintX_t Offset); + private: std::unique_ptr DwarfLine; }; -- 2.7.4