Define ~DIHelper::DIHelper() in .cpp.

llvm-svn: 285347
This commit is contained in:
Rui Ueyama 2016-10-27 21:26:57 +00:00
parent 50b80c36fa
commit 44fa48f986
2 changed files with 5 additions and 1 deletions

View 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 "";

View 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;
};