summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARFDebugFrame.cpp
diff options
context:
space:
mode:
authorEli Bendersky <eliben@google.com>2013-02-06 03:08:02 +0000
committerEli Bendersky <eliben@google.com>2013-02-06 03:08:02 +0000
commit0b04cb0f0eac65326e88eb0d00c7e81886775e0f (patch)
tree8db7a7f764e57a455933a159f12b7dd855050330 /llvm/lib/DebugInfo/DWARFDebugFrame.cpp
parenta72b9709d75b82c1c64d3212f18f846849bbc2cf (diff)
downloadbcm5719-llvm-0b04cb0f0eac65326e88eb0d00c7e81886775e0f.tar.gz
bcm5719-llvm-0b04cb0f0eac65326e88eb0d00c7e81886775e0f.zip
Add virtual desctructor to FrameEntry to avoid error on delete-non-virtual-dtor
llvm-svn: 174483
Diffstat (limited to 'llvm/lib/DebugInfo/DWARFDebugFrame.cpp')
-rw-r--r--llvm/lib/DebugInfo/DWARFDebugFrame.cpp9
1 files changed, 9 insertions, 0 deletions
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",
OpenPOWER on IntegriCloud