From 0b04cb0f0eac65326e88eb0d00c7e81886775e0f Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Wed, 6 Feb 2013 03:08:02 +0000 Subject: Add virtual desctructor to FrameEntry to avoid error on delete-non-virtual-dtor llvm-svn: 174483 --- llvm/lib/DebugInfo/DWARFDebugFrame.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'llvm/lib/DebugInfo/DWARFDebugFrame.cpp') diff --git a/llvm/lib/DebugInfo/DWARFDebugFrame.cpp b/llvm/lib/DebugInfo/DWARFDebugFrame.cpp index 76fdb79e3ef..ec557169e3e 100644 --- a/llvm/lib/DebugInfo/DWARFDebugFrame.cpp +++ b/llvm/lib/DebugInfo/DWARFDebugFrame.cpp @@ -23,6 +23,9 @@ public: FrameEntry(FrameKind K, DataExtractor D, uint64_t Offset, uint64_t Length) : Kind(K), Data(D), Offset(Offset), Length(Length) {} + virtual ~FrameEntry() { + } + FrameKind getKind() const { return Kind; } virtual void dumpHeader(raw_ostream &OS) const = 0; @@ -54,6 +57,9 @@ public: DataAlignmentFactor(DataAlignmentFactor), ReturnAddressRegister(ReturnAddressRegister) {} + ~CIE() { + } + void dumpHeader(raw_ostream &OS) const { OS << format("%08x %08x %08x CIE", Offset, Length, DW_CIE_ID) << "\n"; OS << format(" Version: %d\n", Version); @@ -89,6 +95,9 @@ public: InitialLocation(InitialLocation), AddressRange(AddressRange), LinkedCIE(NULL) {} + ~FDE() { + } + void dumpHeader(raw_ostream &OS) const { OS << format("%08x %08x %08x FDE ", Offset, Length, LinkedCIEOffset); OS << format("cie=%08x pc=%08x...%08x\n", -- cgit v1.2.3