[llvm] r190396 - Remove obsolete code from MipsAsmParser.cpp.

Vladimir Medic Vladimir.Medic at imgtec.com
Tue Sep 10 02:39:55 PDT 2013


Author: vmedic
Date: Tue Sep 10 04:39:55 2013
New Revision: 190396

URL: http://llvm.org/viewvc/llvm-project?rev=190396&view=rev
Log:
Remove obsolete code from MipsAsmParser.cpp.

Modified:
    llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp

Modified: llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp?rev=190396&r1=190395&r2=190396&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp (original)
+++ llvm/trunk/lib/Target/Mips/AsmParser/MipsAsmParser.cpp Tue Sep 10 04:39:55 2013
@@ -52,14 +52,6 @@ private:
 namespace {
 class MipsAsmParser : public MCTargetAsmParser {
 
-  enum FpFormatTy {
-    FP_FORMAT_NONE = -1,
-    FP_FORMAT_S,
-    FP_FORMAT_D,
-    FP_FORMAT_L,
-    FP_FORMAT_W
-  } FpFormat;
-
   MCSubtargetInfo &STI;
   MCAsmParser &Parser;
   MipsAssemblerOptions Options;
@@ -202,8 +194,6 @@ class MipsAsmParser : public MCTargetAsm
 
   int regKindToRegClass(int RegKind);
 
-  FpFormatTy getFpFormat() {return FpFormat;}
-
   unsigned getReg(int RC, int RegNo);
 
   int getATReg();
@@ -1437,18 +1427,6 @@ MipsAsmParser::parseRegs(SmallVectorImpl
     Operands.push_back(Op);
     hasConsumedDollar = false;
     Parser.Lex(); // Eat the register name.
-    if ((RegKind == MipsOperand::Kind_GPR32)
-      && (getLexer().is(AsmToken::LParen))) {
-      // Check if it is indexed addressing operand.
-      Operands.push_back(MipsOperand::CreateToken("(", getLexer().getLoc()));
-      Parser.Lex(); // Eat the parenthesis.
-      if (parseRegs(Operands,RegKind) != MatchOperand_Success)
-        return MatchOperand_NoMatch;
-      if (getLexer().isNot(AsmToken::RParen))
-        return MatchOperand_NoMatch;
-      Operands.push_back(MipsOperand::CreateToken(")", getLexer().getLoc()));
-      Parser.Lex();
-    }
     return MatchOperand_Success;
   } else if (getLexer().getKind() == AsmToken::Integer) {
     unsigned RegNum = Parser.getTok().getIntVal();





More information about the llvm-commits mailing list