forked from OSchip/llvm-project
DwarfUnit: Remove unnecessarily explicit/out of line virtual dtors.
These types have an out of line virtual function each (emitHeader at least) so they won't have weak vtables - no need for more than that. llvm-svn: 201444
This commit is contained in:
parent
440ffd3957
commit
dfade747f0
|
@ -1979,8 +1979,6 @@ void DwarfUnit::emitHeader(const MCSection *ASection,
|
|||
Asm->EmitInt8(Asm->getDataLayout().getPointerSize());
|
||||
}
|
||||
|
||||
DwarfCompileUnit::~DwarfCompileUnit() {}
|
||||
|
||||
void DwarfCompileUnit::initStmtList(MCSymbol *DwarfLineSectionSym) {
|
||||
// Define start line table label for each Compile Unit.
|
||||
MCSymbol *LineTableStartSym =
|
||||
|
@ -2007,8 +2005,6 @@ void DwarfCompileUnit::initStmtList(MCSymbol *DwarfLineSectionSym) {
|
|||
DwarfLineSectionSym);
|
||||
}
|
||||
|
||||
DwarfTypeUnit::~DwarfTypeUnit() {}
|
||||
|
||||
void DwarfTypeUnit::emitHeader(const MCSection *ASection,
|
||||
const MCSymbol *ASectionSym) const {
|
||||
DwarfUnit::emitHeader(ASection, ASectionSym);
|
||||
|
|
|
@ -542,7 +542,6 @@ class DwarfCompileUnit : public DwarfUnit {
|
|||
public:
|
||||
DwarfCompileUnit(unsigned UID, DIE *D, DICompileUnit Node, AsmPrinter *A,
|
||||
DwarfDebug *DW, DwarfFile *DWU);
|
||||
virtual ~DwarfCompileUnit() LLVM_OVERRIDE;
|
||||
|
||||
void initStmtList(MCSymbol *DwarfLineSectionSym);
|
||||
|
||||
|
@ -565,7 +564,6 @@ private:
|
|||
public:
|
||||
DwarfTypeUnit(unsigned UID, DIE *D, DwarfCompileUnit &CU, AsmPrinter *A,
|
||||
DwarfDebug *DW, DwarfFile *DWU);
|
||||
virtual ~DwarfTypeUnit() LLVM_OVERRIDE;
|
||||
|
||||
void setTypeSignature(uint64_t Signature) { TypeSignature = Signature; }
|
||||
uint64_t getTypeSignature() const { return TypeSignature; }
|
||||
|
|
Loading…
Reference in New Issue