[C++11] Add 'override' keyword to virtual methods that override their base class.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203339 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Craig Topper
2014-03-08 06:31:39 +00:00
parent 50b59c77e0
commit d659d34219
19 changed files with 115 additions and 114 deletions

View File

@@ -702,19 +702,19 @@ public:
void beginModule();
/// \brief Emit all Dwarf sections that should come after the content.
void endModule();
void endModule() override;
/// \brief Gather pre-function debug information.
void beginFunction(const MachineFunction *MF);
void beginFunction(const MachineFunction *MF) override;
/// \brief Gather and emit post-function debug information.
void endFunction(const MachineFunction *MF);
void endFunction(const MachineFunction *MF) override;
/// \brief Process beginning of an instruction.
void beginInstruction(const MachineInstr *MI);
void beginInstruction(const MachineInstr *MI) override;
/// \brief Process end of an instruction.
void endInstruction();
void endInstruction() override;
/// \brief Add a DIE to the set of types that we're going to pull into
/// type units.
@@ -726,7 +726,7 @@ public:
/// \brief For symbols that have a size designated (e.g. common symbols),
/// this tracks that size.
void setSymbolSize(const MCSymbol *Sym, uint64_t Size) {
void setSymbolSize(const MCSymbol *Sym, uint64_t Size) override {
SymSize[Sym] = Size;
}