diff options
author | Eli Bendersky <eliben@google.com> | 2013-02-06 03:08:02 +0000 |
---|---|---|
committer | Eli Bendersky <eliben@google.com> | 2013-02-06 03:08:02 +0000 |
commit | 8a0329e6ffc290fb177fd058a64b4cf81d4b620a (patch) | |
tree | 921be4aae30ed85d3b81f3eb8ce1984c6ee0e4f2 /lib/DebugInfo | |
parent | 607acd66f400045919b1067432927a53484eaec1 (diff) |
Add virtual desctructor to FrameEntry to avoid error on delete-non-virtual-dtor
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174483 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo')
-rw-r--r-- | lib/DebugInfo/DWARFDebugFrame.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/DebugInfo/DWARFDebugFrame.cpp b/lib/DebugInfo/DWARFDebugFrame.cpp index 76fdb79e3e..ec557169e3 100644 --- a/lib/DebugInfo/DWARFDebugFrame.cpp +++ b/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", |