Skip to content

Commit 39a9ff5

Browse files
committed
Move destructor of dwarf2reader::CompilationUnit to cc file
1 parent 2b80fbf commit 39a9ff5

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

vendor/google-breakpad/src/common/dwarf/dwarf2reader.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ CompilationUnit::CompilationUnit(const string& path,
6666
have_checked_for_dwp_(false), dwp_path_(),
6767
dwp_byte_reader_(), dwp_reader_() {}
6868

69+
CompilationUnit::~CompilationUnit() {
70+
if (abbrevs_) delete abbrevs_;
71+
}
72+
6973
// Initialize a compilation unit from a .dwo or .dwp file.
7074
// In this case, we need the .debug_addr section from the
7175
// executable file that contains the corresponding skeleton

vendor/google-breakpad/src/common/dwarf/dwarf2reader.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,7 @@ class CompilationUnit {
330330
// ByteReader, and a Dwarf2Handler class to call callbacks in.
331331
CompilationUnit(const string& path, const SectionMap& sections, uint64 offset,
332332
ByteReader* reader, Dwarf2Handler* handler);
333-
virtual ~CompilationUnit() {
334-
if (abbrevs_) delete abbrevs_;
335-
}
333+
virtual ~CompilationUnit();
336334

337335
// Initialize a compilation unit from a .dwo or .dwp file.
338336
// In this case, we need the .debug_addr section from the

0 commit comments

Comments
 (0)