mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-05 09:24:28 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95526 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -33,6 +33,8 @@ class Twine;
|
|||||||
|
|
||||||
class DwarfPrinter {
|
class DwarfPrinter {
|
||||||
protected:
|
protected:
|
||||||
|
~DwarfPrinter() {}
|
||||||
|
|
||||||
//===-------------------------------------------------------------==---===//
|
//===-------------------------------------------------------------==---===//
|
||||||
// Core attributes used by the DWARF printer.
|
// Core attributes used by the DWARF printer.
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user