mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-19 02:25:01 +00:00
[C++11] Add 'override' keyword to virtual methods that override their base class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203345 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -66,11 +66,11 @@ static void printDebugLoc(const DebugLoc &DL, formatted_raw_ostream &OS) {
|
||||
class CommentWriter : public AssemblyAnnotationWriter {
|
||||
public:
|
||||
void emitFunctionAnnot(const Function *F,
|
||||
formatted_raw_ostream &OS) {
|
||||
formatted_raw_ostream &OS) override {
|
||||
OS << "; [#uses=" << F->getNumUses() << ']'; // Output # uses
|
||||
OS << '\n';
|
||||
}
|
||||
void printInfoComment(const Value &V, formatted_raw_ostream &OS) {
|
||||
void printInfoComment(const Value &V, formatted_raw_ostream &OS) override {
|
||||
bool Padded = false;
|
||||
if (!V.getType()->isVoidTy()) {
|
||||
OS.PadToColumn(50);
|
||||
|
Reference in New Issue
Block a user