Skip to content

Commit

Permalink
DwarfUnit: LLVM_OVERRIDE and constify some functions
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197072 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
dwblaikie committed Dec 11, 2013
1 parent 87b627d commit bd71b0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/CodeGen/AsmPrinter/DwarfUnit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1986,7 +1986,7 @@ DIE *DwarfUnit::getOrCreateStaticMemberDIE(DIDerivedType DT) {
}

void DwarfUnit::emitHeader(const MCSection *ASection,
const MCSymbol *ASectionSym) {
const MCSymbol *ASectionSym) const {
Asm->OutStreamer.AddComment("DWARF version number");
Asm->EmitInt16(DD->getDwarfVersion());
Asm->OutStreamer.AddComment("Offset Into Abbrev. Section");
Expand Down
6 changes: 3 additions & 3 deletions lib/CodeGen/AsmPrinter/DwarfUnit.h
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ class DwarfUnit {
}

/// 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:
/// getOrCreateStaticMemberDIE - Create new static data member DIE.
Expand Down Expand Up @@ -507,7 +507,7 @@ class DwarfCompileUnit : public DwarfUnit {
/// either DW_FORM_addr or DW_FORM_GNU_addr_index.
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 {
Expand All @@ -518,7 +518,7 @@ class DwarfTypeUnit : public DwarfUnit {
DwarfTypeUnit(unsigned UID, DIE *D, uint16_t Language, AsmPrinter *A,
DwarfDebug *DW, DwarfFile *DWU);

uint16_t getLanguage() const { return Language; }
uint16_t getLanguage() const LLVM_OVERRIDE { return Language; }
};
} // end llvm namespace
#endif

0 comments on commit bd71b0a

Please sign in to comment.