forked from OSchip/llvm-project
parent
50b80c36fa
commit
44fa48f986
lld/ELF
|
@ -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 "";
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue