[llvm] r282098 - [MIRParser] Delete dead code. NFCI.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 21 11:26:08 PDT 2016
Author: davide
Date: Wed Sep 21 13:26:08 2016
New Revision: 282098
URL: http://llvm.org/viewvc/llvm-project?rev=282098&view=rev
Log:
[MIRParser] Delete dead code. NFCI.
Modified:
llvm/trunk/lib/CodeGen/MIRParser/MIParser.cpp
Modified: llvm/trunk/lib/CodeGen/MIRParser/MIParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MIRParser/MIParser.cpp?rev=282098&r1=282097&r2=282098&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MIRParser/MIParser.cpp (original)
+++ llvm/trunk/lib/CodeGen/MIRParser/MIParser.cpp Wed Sep 21 13:26:08 2016
@@ -126,7 +126,6 @@ public:
bool parseRegisterFlag(unsigned &Flags);
bool parseSubRegisterIndex(unsigned &SubReg);
bool parseRegisterTiedDefIndex(unsigned &TiedDefIdx);
- bool parseSize(unsigned &Size);
bool parseRegisterOperand(MachineOperand &Dest,
Optional<unsigned> &TiedDefIdx, bool IsDef = false);
bool parseImmediateOperand(MachineOperand &Dest);
@@ -884,17 +883,6 @@ bool MIParser::parseRegisterTiedDefIndex
return true;
lex();
if (expectAndConsume(MIToken::rparen))
- return true;
- return false;
-}
-
-bool MIParser::parseSize(unsigned &Size) {
- if (Token.isNot(MIToken::IntegerLiteral))
- return error("expected an integer literal for the size");
- if (getUnsigned(Size))
- return true;
- lex();
- if (expectAndConsume(MIToken::rparen))
return true;
return false;
}
More information about the llvm-commits
mailing list