mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
DwarfUnit: LLVM_OVERRIDE and constify some functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197072 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1986,7 +1986,7 @@ DIE *DwarfUnit::getOrCreateStaticMemberDIE(DIDerivedType DT) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void DwarfUnit::emitHeader(const MCSection *ASection,
|
void DwarfUnit::emitHeader(const MCSection *ASection,
|
||||||
const MCSymbol *ASectionSym) {
|
const MCSymbol *ASectionSym) const {
|
||||||
Asm->OutStreamer.AddComment("DWARF version number");
|
Asm->OutStreamer.AddComment("DWARF version number");
|
||||||
Asm->EmitInt16(DD->getDwarfVersion());
|
Asm->EmitInt16(DD->getDwarfVersion());
|
||||||
Asm->OutStreamer.AddComment("Offset Into Abbrev. Section");
|
Asm->OutStreamer.AddComment("Offset Into Abbrev. Section");
|
||||||
|
@@ -420,7 +420,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Emit the header for this unit, not including the initial length field.
|
/// Emit the header for this unit, not including the initial length field.
|
||||||
void emitHeader(const MCSection *ASection, const MCSymbol *ASectionSym);
|
void emitHeader(const MCSection *ASection, const MCSymbol *ASectionSym) const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/// getOrCreateStaticMemberDIE - Create new static data member DIE.
|
/// getOrCreateStaticMemberDIE - Create new static data member DIE.
|
||||||
@@ -507,7 +507,7 @@ public:
|
|||||||
/// either DW_FORM_addr or DW_FORM_GNU_addr_index.
|
/// either DW_FORM_addr or DW_FORM_GNU_addr_index.
|
||||||
void addLabelAddress(DIE *Die, dwarf::Attribute Attribute, MCSymbol *Label);
|
void addLabelAddress(DIE *Die, dwarf::Attribute Attribute, MCSymbol *Label);
|
||||||
|
|
||||||
uint16_t getLanguage() const { return getNode().getLanguage(); }
|
uint16_t getLanguage() const LLVM_OVERRIDE { return getNode().getLanguage(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
class DwarfTypeUnit : public DwarfUnit {
|
class DwarfTypeUnit : public DwarfUnit {
|
||||||
@@ -518,7 +518,7 @@ public:
|
|||||||
DwarfTypeUnit(unsigned UID, DIE *D, uint16_t Language, AsmPrinter *A,
|
DwarfTypeUnit(unsigned UID, DIE *D, uint16_t Language, AsmPrinter *A,
|
||||||
DwarfDebug *DW, DwarfFile *DWU);
|
DwarfDebug *DW, DwarfFile *DWU);
|
||||||
|
|
||||||
uint16_t getLanguage() const { return Language; }
|
uint16_t getLanguage() const LLVM_OVERRIDE { return Language; }
|
||||||
};
|
};
|
||||||
} // end llvm namespace
|
} // end llvm namespace
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user