From a9275b1c2440f01a7fb16e3d9259288a0b8305e3 Mon Sep 17 00:00:00 2001 From: Colin LeMahieu Date: Mon, 9 Nov 2015 07:10:24 +0000 Subject: [PATCH] [Hexagon] Adding override to methods. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252453 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp b/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp index d0d3985a144..6c8860173d0 100644 --- a/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp +++ b/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp @@ -112,7 +112,7 @@ class HexagonAsmParser : public MCTargetAsmParser { bool MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode, OperandVector &Operands, MCStreamer &Out, - uint64_t &ErrorInfo, bool MatchingInlineAsm); + uint64_t &ErrorInfo, bool MatchingInlineAsm) override; unsigned validateTargetOperandClass(MCParsedAsmOperand &Op, unsigned Kind) override; void OutOfRange(SMLoc IDLoc, long long Val, long long Max); @@ -160,13 +160,14 @@ public: bool parseExpressionOrOperand(OperandVector &Operands); bool parseExpression(MCExpr const *& Expr); virtual bool ParseInstruction(ParseInstructionInfo &Info, StringRef Name, - SMLoc NameLoc, OperandVector &Operands) { + SMLoc NameLoc, OperandVector &Operands) override + { llvm_unreachable("Unimplemented"); } virtual bool ParseInstruction(ParseInstructionInfo &Info, StringRef Name, - AsmToken ID, OperandVector &Operands); + AsmToken ID, OperandVector &Operands) override; - virtual bool ParseDirective(AsmToken DirectiveID); + virtual bool ParseDirective(AsmToken DirectiveID) override; }; /// HexagonOperand - Instances of this class represent a parsed Hexagon machine -- 2.34.1