From e729adbfcd1b248fefed8dd1efaad00cb41f3ba8 Mon Sep 17 00:00:00 2001 From: Colin LeMahieu Date: Mon, 9 Nov 2015 05:47:56 +0000 Subject: [PATCH] [Hexagon] Fixing warnings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252448 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp b/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp index ee3d177d07d..d0d3985a144 100644 --- a/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp +++ b/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp @@ -87,8 +87,6 @@ class HexagonAsmParser : public MCTargetAsmParser { MCAssembler *getAssembler() const { return Assembler; } MCAsmLexer &getLexer() const { return Parser.getLexer(); } - unsigned ArchVersion; - bool equalIsAsmAssignment() override { return false; } bool isLabel(AsmToken &Token) override; @@ -1190,7 +1188,7 @@ bool HexagonAsmParser::isLabel(AsmToken &Token) { return true; if (!MatchRegisterName(String.lower())) return true; - assert(Second.is(AsmToken::Colon)); + assert(Second.is(AsmToken::Colon)); (void)Second; StringRef Raw (String.data(), Third.getString().data() - String.data() + Third.getString().size()); std::string Collapsed = Raw; @@ -1566,7 +1564,7 @@ int HexagonAsmParser::processInstruction(MCInst &Inst, MCOperand &MO = Inst.getOperand(2); int64_t Value; bool Success = MO.getExpr()->evaluateAsAbsolute(Value); - assert(Success && "Assured by matcher"); + assert(Success && "Assured by matcher"); (void)Success; if (Value == 0) { MCInst TmpInst; MCOperand &Pd = Inst.getOperand(0);