diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-04-29 07:57:00 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-04-29 07:57:00 +0000 |
commit | 60879a3c76bc7b13cf4a29cb91b854c2d822856a (patch) | |
tree | 6a10c36ef0aeaf1d485764482a2fd08042387cc0 /llvm/lib/Target/XCore/XCoreAsmPrinter.cpp | |
parent | 6db3410071ce680c742a260f07455c22fc0a1a54 (diff) | |
download | bcm5719-llvm-60879a3c76bc7b13cf4a29cb91b854c2d822856a.tar.gz bcm5719-llvm-60879a3c76bc7b13cf4a29cb91b854c2d822856a.zip |
[C++11] Add 'override' keywords and remove 'virtual'. Additionally add 'final' and leave 'virtual' on some methods that are marked virtual without overriding anything and have no obvious overrides themselves. XCore edition
llvm-svn: 207501
Diffstat (limited to 'llvm/lib/Target/XCore/XCoreAsmPrinter.cpp')
-rw-r--r-- | llvm/lib/Target/XCore/XCoreAsmPrinter.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/Target/XCore/XCoreAsmPrinter.cpp b/llvm/lib/Target/XCore/XCoreAsmPrinter.cpp index 2a52766e37e..e98d4f933df 100644 --- a/llvm/lib/Target/XCore/XCoreAsmPrinter.cpp +++ b/llvm/lib/Target/XCore/XCoreAsmPrinter.cpp @@ -59,7 +59,7 @@ namespace { : AsmPrinter(TM, Streamer), Subtarget(TM.getSubtarget<XCoreSubtarget>()), MCInstLowering(*this) {} - virtual const char *getPassName() const { + const char *getPassName() const override { return "XCore Assembly Printer"; } @@ -71,18 +71,18 @@ namespace { void printOperand(const MachineInstr *MI, int opNum, raw_ostream &O); bool PrintAsmOperand(const MachineInstr *MI, unsigned OpNo, unsigned AsmVariant, const char *ExtraCode, - raw_ostream &O); + raw_ostream &O) override; bool PrintAsmMemoryOperand(const MachineInstr *MI, unsigned OpNum, unsigned AsmVariant, const char *ExtraCode, raw_ostream &O) override; void emitArrayBound(MCSymbol *Sym, const GlobalVariable *GV); - virtual void EmitGlobalVariable(const GlobalVariable *GV); + void EmitGlobalVariable(const GlobalVariable *GV) override; - void EmitFunctionEntryLabel(); - void EmitInstruction(const MachineInstr *MI); - void EmitFunctionBodyStart(); - void EmitFunctionBodyEnd(); + void EmitFunctionEntryLabel() override; + void EmitInstruction(const MachineInstr *MI) override; + void EmitFunctionBodyStart() override; + void EmitFunctionBodyEnd() override; }; } // end of anonymous namespace |