[llvm] r316167 - [RISCV][NFC] Drop unused parameter from createImm helper in RISCVAsmParser
Alex Bradbury via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 19 09:09:21 PDT 2017
Author: asb
Date: Thu Oct 19 09:09:20 2017
New Revision: 316167
URL: http://llvm.org/viewvc/llvm-project?rev=316167&view=rev
Log:
[RISCV][NFC] Drop unused parameter from createImm helper in RISCVAsmParser
Modified:
llvm/trunk/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
Modified: llvm/trunk/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp?rev=316167&r1=316166&r2=316167&view=diff
==============================================================================
--- llvm/trunk/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp (original)
+++ llvm/trunk/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp Thu Oct 19 09:09:20 2017
@@ -30,7 +30,6 @@ namespace {
struct RISCVOperand;
class RISCVAsmParser : public MCTargetAsmParser {
-
SMLoc getLoc() const { return getParser().getTok().getLoc(); }
bool generateImmOutOfRangeError(OperandVector &Operands, uint64_t ErrorInfo,
@@ -281,7 +280,7 @@ public:
}
static std::unique_ptr<RISCVOperand> createImm(const MCExpr *Val, SMLoc S,
- SMLoc E, MCContext &Ctx) {
+ SMLoc E) {
auto Op = make_unique<RISCVOperand>(Immediate);
Op->Imm.Val = Val;
Op->StartLoc = S;
@@ -471,7 +470,7 @@ OperandMatchResultTy RISCVAsmParser::par
return parseOperandWithModifier(Operands);
}
- Operands.push_back(RISCVOperand::createImm(Res, S, E, getContext()));
+ Operands.push_back(RISCVOperand::createImm(Res, S, E));
return MatchOperand_Success;
}
@@ -511,7 +510,7 @@ RISCVAsmParser::parseOperandWithModifier
}
const MCExpr *ModExpr = RISCVMCExpr::create(SubExpr, VK, getContext());
- Operands.push_back(RISCVOperand::createImm(ModExpr, S, E, getContext()));
+ Operands.push_back(RISCVOperand::createImm(ModExpr, S, E));
return MatchOperand_Success;
}
More information about the llvm-commits
mailing list