forked from OSchip/llvm-project
Give DwarfPrinter a protected (but not virtual) destructor. Cppcheck
warns about this base class not having a virtual destructor, but since this class has no virtual methods and neither it or the types derived from it has a destructor, a protected trivial destructor will do (and shuts cppcheck up) the trick without the cost of introducing a vtable. llvm-svn: 95526
This commit is contained in:
parent
ff8cce4395
commit
a1b98ab7d5
|
@ -33,6 +33,8 @@ class Twine;
|
|||
|
||||
class DwarfPrinter {
|
||||
protected:
|
||||
~DwarfPrinter() {}
|
||||
|
||||
//===-------------------------------------------------------------==---===//
|
||||
// Core attributes used by the DWARF printer.
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue