Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit 648d6ac

Browse files
committed
[MIRParser] Delete dead code. NFCI.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282098 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 5f630a9 commit 648d6ac

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

lib/CodeGen/MIRParser/MIParser.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ class MIParser {
126126
bool parseRegisterFlag(unsigned &Flags);
127127
bool parseSubRegisterIndex(unsigned &SubReg);
128128
bool parseRegisterTiedDefIndex(unsigned &TiedDefIdx);
129-
bool parseSize(unsigned &Size);
130129
bool parseRegisterOperand(MachineOperand &Dest,
131130
Optional<unsigned> &TiedDefIdx, bool IsDef = false);
132131
bool parseImmediateOperand(MachineOperand &Dest);
@@ -888,17 +887,6 @@ bool MIParser::parseRegisterTiedDefIndex(unsigned &TiedDefIdx) {
888887
return false;
889888
}
890889

891-
bool MIParser::parseSize(unsigned &Size) {
892-
if (Token.isNot(MIToken::IntegerLiteral))
893-
return error("expected an integer literal for the size");
894-
if (getUnsigned(Size))
895-
return true;
896-
lex();
897-
if (expectAndConsume(MIToken::rparen))
898-
return true;
899-
return false;
900-
}
901-
902890
bool MIParser::assignRegisterTies(MachineInstr &MI,
903891
ArrayRef<ParsedMachineOperand> Operands) {
904892
SmallVector<std::pair<unsigned, unsigned>, 4> TiedRegisterPairs;

0 commit comments

Comments
 (0)